Versions in this module Expand all Collapse all v0 v0.1.0 Apr 23, 2023 Changes in this version + func Add(args ...int) int + func CamelToSnake(s string) string + func Concat(args ...string) string + func GetStatusCodeFromComment(comment string) (int32, error) + func IsFileExist(name string) bool + func MatchString(b []byte, expr string) bool + func OpenFile(fPath string) (*os.File, error) + func SnakeToCamel(s string) string + func ToInt(v interface{}) int + func ToLowerFirst(s string) string + func ToUpperFirst(s string) string + type SvcAssign struct + DbDSN string + ErrcodeInitMap map[string]interface{} + ErrcodeInterval int + PortInitMap map[string]interface{} + PortInterval int + SvcGroup string + SvcName string + func NewSvcAssign(dbDSN, svcName, svcGroup string, portInterval, errcodeInterval int, ...) *SvcAssign + func (a *SvcAssign) GetOrAssignPortAndErrcode(port, errCode *int) error