Documentation ¶
Index ¶
- func EnsureFileFolderExists(path string)
- func FileExist(path string) bool
- func GenerateId() string
- func GenerateNumber(min int, max int) string
- func GetCurrentTime() string
- func GetIdFromOwnerAndName(owner string, name string) string
- func GetOwnerAndNameFromId(id string) (string, string)
- func GetOwnerAndNameFromId3(id string) (string, string, string)
- func GetOwnerAndNameFromId3New(id string) (string, string, string)
- func GetPath(path string) string
- func IndexAt(s, sep string, n int) int
- func IsChinese(str string) bool
- func JsonToStruct(data string, v interface{}) error
- func ListFiles(path string) []string
- func ParseFloat(s string) float64
- func ParseInt(s string) int
- func ParseIntWithError(s string) (int, error)
- func ReadBytesFromPath(path string) []byte
- func ReadStringFromPath(path string) string
- func RemoveExt(filename string) string
- func StructToJson(v interface{}) string
- func StructToJsonCompact(v interface{}) string
- func WriteBytesToPath(b []byte, path string)
- func WriteStringToPath(s string, path string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureFileFolderExists ¶
func EnsureFileFolderExists(path string)
func GenerateId ¶
func GenerateId() string
func GenerateNumber ¶
func GetCurrentTime ¶
func GetCurrentTime() string
func GetIdFromOwnerAndName ¶
func GetOwnerAndNameFromId ¶
func JsonToStruct ¶
func ParseFloat ¶
func ParseIntWithError ¶
func ReadBytesFromPath ¶
func ReadStringFromPath ¶
func StructToJson ¶
func StructToJson(v interface{}) string
func StructToJsonCompact ¶
func StructToJsonCompact(v interface{}) string
func WriteBytesToPath ¶
func WriteStringToPath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.