Documentation ¶
Index ¶
- func FileExist(path string) bool
- func GetCurrentTime() string
- func GetDateStr() string
- func GetOwnerAndNameFromId(id string) (string, string)
- func GetTimeDay(day int) string
- func GetTimeFromTimestamp(stamp int64) string
- func GetTimeHour(hour int) string
- func GetTimeMinute(minute int) string
- func GetTimeMonth(month int) string
- func GetTimeYear(year int) string
- func JsonToStruct(data string, v interface{}) error
- func ListFiles(path string) []string
- func ReadStringFromPath(path string) string
- func String2Time(value string) (time.Time, error)
- func StructToJson(v interface{}) string
- func Time2String(t time.Time) string
- func UploadFileToStorage(name string, fileBytes []byte) string
- func UploadPic(name string, text string) (src string)
- func WriteStringToPath(s string, path string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentTime ¶
func GetCurrentTime() string
func GetDateStr ¶
func GetDateStr() string
GetDateStr returns formatted current time with the year, month and day.
func GetOwnerAndNameFromId ¶
func GetTimeDay ¶
GetTimeDay returns the time after the specified duration(day).
func GetTimeFromTimestamp ¶
func GetTimeHour ¶
GetTimeHour returns the time after the specified duration(hour).
func GetTimeMinute ¶
GetTimeMinute returns the time after the specified duration(minute).
func GetTimeMonth ¶
GetTimeMonth returns the time after the specified duration(month).
func GetTimeYear ¶
GetTimeYear returns the time after the specified duration(year).
func JsonToStruct ¶
func ReadStringFromPath ¶
func StructToJson ¶
func StructToJson(v interface{}) string
func Time2String ¶
func UploadFileToStorage ¶
func WriteStringToPath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.