Documentation
¶
Index ¶
- func InSlice(str string, values []string) bool
- func InitSlack(token string, channel string, username string)
- func SendToSlack(format string, a ...interface{}) error
- func SendToSlackChannel(channel, username, format string, a ...interface{}) error
- func SendToSlackUser(user, username, format string, a ...interface{}) error
- func SubstringInSlice(str string, values []string) bool
- func Underscore(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitSlack ¶
InitSlack Initializes a slack client with the given token and sets the default channel.
func SendToSlack ¶
SendToSlack Sends message to the default channel.
func SendToSlackChannel ¶
SendToSlackChannel Sends message to a specific channel.
func SendToSlackUser ¶
SendToSlackUser Sends message to a specific user.
func SubstringInSlice ¶
SubstringInSlice returns true if str is contained within any element of the values slice. False otherwise
func Underscore ¶
Underscore converts "CamelCasedString" to "camel_cased_string".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.