Documentation
¶
Index ¶
- func FileExist(path string) bool
- func GenerateTwoUniqueRandomStrings() (string, string, error)
- func GetClientIp(r *http.Request) string
- func GetCurrentTime() string
- func GetHostname() 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 IndexAt(s, sep string, n int) int
- 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 StructToJson(v interface{}) string
- func StructToJsonNoIndent(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 GenerateTwoUniqueRandomStrings ¶ added in v1.3.0
func GetClientIp ¶ added in v1.18.0
func GetCurrentTime ¶ added in v1.3.0
func GetCurrentTime() string
func GetHostname ¶
func GetHostname() string
func GetIdFromOwnerAndName ¶
func GetOwnerAndNameFromId ¶
func JsonToStruct ¶
func ParseFloat ¶
func ParseIntWithError ¶
func ReadBytesFromPath ¶
func ReadStringFromPath ¶
func StructToJson ¶
func StructToJson(v interface{}) string
func StructToJsonNoIndent ¶ added in v1.3.0
func StructToJsonNoIndent(v interface{}) string
func WriteBytesToPath ¶
func WriteStringToPath ¶
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.