Documentation ¶
Index ¶
- Constants
- func DataToJson(rawData interface{}, debug bool) (string, error)
- func GenerateUid() string
- func GetCliArguments(usage, name, version string) map[string]interface{}
- func GetGameOptions(arguments map[string]interface{}) (string, string)
- func GetServerOptions(arguments map[string]interface{}) (bool, int, bool)
- func HasSuffixAny(s string, suffixes []string) bool
- func HexToObjectId(wordId string) *bson.ObjectId
- func JoinLimited(parts []string, joinBy string, maxCount int) string
- func JsonToStringMap(bytes []byte) (map[string]string, error)
- func LogErr(err error, debug bool)
- func LogErrMsg(err error, msg string, debug bool)
- func LogFatalErr(err error, debug bool)
- func LogFatalMsg(err error, msg string, debug bool)
- func LogFatalfMsg(err error, msg string, debug bool)
- func LogMsg(msg string, debug bool, fatal bool)
- func MgoDb(mgoDb *mgo.Database) gin.HandlerFunc
- func ParseTimeNow(timeForm, toParse string) time.Time
- func ReadStdInput() ([]byte, error)
- func SliceAppend(stringSlice []string, stringToAppend string) []string
- func StringIn(s string, options []string) bool
- func TrimSplit(s, sep string) []string
Constants ¶
View Source
const ( IS_DEBUG = true NO_DEBUG = false )
View Source
const ( IS_FATAL = true NON_FATAL = false )
Variables ¶
This section is empty.
Functions ¶
func DataToJson ¶
func GenerateUid ¶
func GenerateUid() string
func GetCliArguments ¶
func GetGameOptions ¶
func HasSuffixAny ¶
func HexToObjectId ¶
func LogFatalErr ¶
func LogFatalMsg ¶
func LogFatalfMsg ¶
func MgoDb ¶
func MgoDb(mgoDb *mgo.Database) gin.HandlerFunc
func ParseTimeNow ¶
func ReadStdInput ¶
func SliceAppend ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.