Versions in this module Expand all Collapse all v0 v0.1.1 Jun 2, 2023 v0.1.0 Jun 2, 2023 Changes in this version + func AskForConfirmation(action string) bool + func CheckErr(err error) + func CompareStrVer(v1, v2 string) (res int) + func CyanColor(s string) string + func Exists(path string) bool + func GreenColor(s string) string + func Int64toString(i int64) string + func InttoString(i int) string + func IsTerminal(f *os.File) bool + func PrintifyDockerfile(writer io.Writer, dockerfile []byte) + func PrintifyJSON(writer io.Writer, v interface{}) error + func RedColor(s string) string + func ReturnMsg(ctx *gin.Context, code int, data interface{}, msg string) + func SliceDelOne(a string, b []string) []string + func SlicetoString(s []string) string + func SnowId() (int64, error) + func StdRun(args ...string) + func StrTrimSpace(v1str, v2str string) (v1, v2 string) + func StringtoInt64(s string) int64 + func StringtoSlice(s string) []string + func StructToMap(obj interface{}) map[string]interface + func StructToSlice(f interface{}) []string + func WriteToFile(filename string, v interface{}, marshal func(v interface{}) ([]byte, error)) error + func YellowColor(s string) string + type IDMgr struct + func NewIdMgr(node uint16) (*IDMgr, error) + func (c *IDMgr) ID() int64 + type IGenID interface + ID func() int64 + type Res struct + Code int + Data interface{} + Msg string