Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slackevents.sharedLinks struct is unexported #1079

Closed
pmenglund opened this issue Jun 25, 2022 · 0 comments · Fixed by #1080
Closed

slackevents.sharedLinks struct is unexported #1079

pmenglund opened this issue Jun 25, 2022 · 0 comments · Fixed by #1080

Comments

@pmenglund
Copy link
Contributor

What happened

I'm writing a test for my shared link unfurler, and the LinkSharedEvent struct has a field Links which is an array of sharedLinks.

type sharedLinks struct {
Domain string `json:"domain"`
URL string `json:"url"`
}

Expected behavior

The sharedLinks type should be exported.

Steps to reproduce

reproducible code

Try to create a LinkSharedEvent with a list of Links:

	e := slackevents.LinkSharedEvent{
		Links:            []slackevents.sharedLinks{},
	}

Versions

  • Go: 1.18
  • slack-go/slack: v0.10.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants