Skip to content

Commit 3767505

Browse files
committedJul 30, 2015
Add function to generate links in Slack syntax
1 parent 3292e40 commit 3767505

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎message.go

+4
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,7 @@ func niceTypeMessage(msgType string) string {
5050
}
5151
return "Event with status'" + msgType + "' happened"
5252
}
53+
54+
func slackLink(title, href string) string {
55+
return fmt.Sprintf("<%v|%v>", href, title)
56+
}

0 commit comments

Comments
 (0)
Please sign in to comment.