We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi i was not able to add Color in the Attachment can you please help on this
how do you add Color to slack message if fail i want to mark it red
attachment := slack.Attachment{ Color: "#1766ff", }
it was throwing error `cannot use "red" (untyped string constant) as *string value in struct literalcompiler[IncompatibleAssign](https://pkg.go.dev/golang.org/x/tools/internal/typesinternal?utm_source%3Dgopls#IncompatibleAs sign)
`
The text was updated successfully, but these errors were encountered:
@sajjasivakumar hi, you can assign a value for attachment.Color like this:
attachment.Color
Color := "#1766ff" attachment1 := Attachment{ Color: &Color, }
Hope this trick will help you !
Sorry, something went wrong.
No branches or pull requests
Hi i was not able to add Color in the Attachment can you please help on this
how do you add Color to slack message if fail i want to mark it red
attachment := slack.Attachment{
Color: "#1766ff",
}
it was throwing error
`cannot use "red" (untyped string constant) as *string value in struct literalcompiler[IncompatibleAssign](https://pkg.go.dev/golang.org/x/tools/internal/typesinternal?utm_source%3Dgopls#IncompatibleAs
sign)
`
The text was updated successfully, but these errors were encountered: