Documentation ¶
Index ¶
- Variables
- func CleanString(subject string, findme string, replace string) string
- func InStringArray(list []string, findme string) bool
- func IndexOf(list []string, findme string) int
- func IsCurrentPIDByFile(file string) (bool, error)
- func MaxInt(x, y int) int
- func MinInt(x, y int) int
- func PIDIsRunning(file string) (bool, error)
- func ParseFloat64FromString(str string, default_value float64) (float64, error)
- func ParseInt64FromString(str string, default_value int64) (int64, error)
- func ParseIntFromByte(b byte) (int, error)
- func ParseIntFromBytes(b []byte) (int, error)
- func ParseIntFromString(str string, default_value int) (int, error)
- func PathExists(path string) (bool, error)
- func RandomString(n int) string
- func RemoveContents(dir string) error
- func ReplaceStringOnIndex(s, old, replace string, n int) string
- func RoundAsInt(val float64) int
- func SplitWithoutEmpty(data string, separator string) []string
- func SystemExec(command string, args ...string) (string, error)
- func SystemExecInDir(path string, command string, args ...string) (string, error)
- func SystemRunBg(command string, args ...string) (int, error)
- func TimeFromISOString(str string) (time.Time, error)
- func TimeFromSQLString(str string) (time.Time, error)
- func TimeFromSQLStringWithZone(str string) (time.Time, error)
- func TimeFromStringFormat(str, layout string) (time.Time, error)
- func TimeNowSQLString() string
- func TimeNowString() string
- func TimeToISOString(t time.Time) (string, error)
- func TimeToSQLString(t time.Time) (string, error)
- func ToFixed(num float64, precision int) float64
- type Date
Constants ¶
This section is empty.
Variables ¶
View Source
var DateLayout = "2006-01-02"
Functions ¶
func InStringArray ¶
func IsCurrentPIDByFile ¶
func PIDIsRunning ¶
func ParseFloat64FromString ¶
func ParseInt64FromString ¶
func ParseIntFromByte ¶
func ParseIntFromBytes ¶
func PathExists ¶
func RandomString ¶
func RemoveContents ¶
func ReplaceStringOnIndex ¶
func RoundAsInt ¶
func SplitWithoutEmpty ¶
func SystemExecInDir ¶
func TimeNowSQLString ¶
func TimeNowSQLString() string
func TimeNowString ¶
func TimeNowString() string
Types ¶
Click to show internal directories.
Click to hide internal directories.