mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-11 01:23:51 +00:00
14 lines
235 B
Go
14 lines
235 B
Go
|
package slackstyle
|
||
|
|
||
|
const Green = "#228B22"
|
||
|
const Red = "#800000"
|
||
|
|
||
|
func TrendIcon(trend int) string {
|
||
|
if trend < 0 {
|
||
|
return ":chart_with_downwards_trend:"
|
||
|
} else if trend > 0 {
|
||
|
return ":chart_with_upwards_trend:"
|
||
|
}
|
||
|
return ""
|
||
|
}
|