add export symbol comment

This commit is contained in:
c9s 2022-06-20 10:21:42 +08:00
parent ee89a1c382
commit d1b8710102
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -1,8 +1,14 @@
package slackstyle package slackstyle
// Green is the green hex color
const Green = "#228B22" const Green = "#228B22"
// Red is the red hex color
const Red = "#800000" const Red = "#800000"
// TrendIcon returns the slack emoji of trends
// 1: uptrend
// -1: downtrend
func TrendIcon(trend int) string { func TrendIcon(trend int) string {
if trend < 0 { if trend < 0 {
return ":chart_with_downwards_trend:" return ":chart_with_downwards_trend:"