package
0.0.0-20220416093005-f5520ae2eb51
Repository: https://github.com/linkinstars/golang-util.git
Documentation: pkg.go.dev
# Functions
CheckPathIfNotExist if file exist return true.
CreateDirIfNotExist create dir recursion.
GenerateRandomNumber generate random number string.
GetPtrTypeValue returns the value of the pointer and type.
IsJSON check if the data is json.
IsNil check interface is nil.
IsSlicePtr check if slice pointer.
IsStructPtr check if struct pointer.
ToJSONString convert data to json string.
ToJSONStringEscapeHTML convert data to json string escape html.
ToMD5 return the str's md5.
TrimStruct trim struct all fields.