Documentation ¶
Index ¶
- Variables
- func CheckStrEmpty(str string) bool
- func ConvertMapToString(m map[string]string) string
- func ConvertStringToMap(str string) map[string]string
- func ErrorResponse(c *gin.Context, code int, err string)
- func StrToTime(input string) time.Time
- func UUIDGen(str string) string
- type ConfigProperties
- type Level
Constants ¶
This section is empty.
Variables ¶
Package level variables, which are pointer to log.Logger.
Functions ¶
func CheckStrEmpty ¶
CheckStrEmpty .... check if input string is empty
func ConvertMapToString ¶
ConvertMapToString ... convert map to string
func ConvertStringToMap ¶
ConvertStringToMap .... convert string to map
func ErrorResponse ¶
ErrorResponse .... use ErrorResponse to handle error
Types ¶
type ConfigProperties ¶
ConfigProperties -- is key string, value is string
func ReadPropertiesFile ¶
func ReadPropertiesFile(filename string) (ConfigProperties, error)
ReadPropertiesFile --- read config from properties file
Click to show internal directories.
Click to hide internal directories.