added github links to logs
This commit is contained in:
25
custom/custom.go
Normal file
25
custom/custom.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package custom
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
var color map[string]string = map[string]string{
|
||||
"red": "#FF6B6B",
|
||||
"yellow": "#FFD93D",
|
||||
"green": "#6BCB77",
|
||||
"blue": "#008DDA",
|
||||
"primary": "#211951",
|
||||
}
|
||||
|
||||
var Gh_url string = "https://github.com/vaporvee/acecore/blob/main/"
|
||||
|
||||
func GetColor(s string) int {
|
||||
hexColor := strings.TrimPrefix(color[s], "#")
|
||||
decimal, err := strconv.ParseInt(hexColor, 16, 64)
|
||||
if err != nil {
|
||||
return 0
|
||||
}
|
||||
return int(decimal)
|
||||
}
|
Reference in New Issue
Block a user