Documentation ¶
Index ¶
- func CheckPathIfNotExist(path string) bool
- func CreateDirIfNotExist(dir string) error
- func GenerateRandomNumber(maxLength int) string
- func GetPtrTypeValue(obj interface{}) (objT reflect.Type, objV reflect.Value, err error)
- func IsJSON(str string) bool
- func IsNil(v interface{}) bool
- func IsSlicePtr(t reflect.Type) bool
- func IsStructPtr(t reflect.Type) bool
- func ToJSONString(data interface{}) string
- func ToJSONStringEscapeHTML(data interface{}) string
- func ToMD5(str string) string
- func TrimStruct(obj interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPathIfNotExist ¶
CheckPathIfNotExist if file exist return true
func CreateDirIfNotExist ¶
CreateDirIfNotExist create dir recursion
func GenerateRandomNumber ¶
GenerateRandomNumber generate random number string
func GetPtrTypeValue ¶
GetPtrTypeValue returns the value of the pointer and type
func ToJSONString ¶
func ToJSONString(data interface{}) string
ToJSONString convert data to json string
func ToJSONStringEscapeHTML ¶
func ToJSONStringEscapeHTML(data interface{}) string
ToJSONStringEscapeHTML convert data to json string escape html
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.