Documentation
¶
Index ¶
- Constants
- func Average(args ...float64) float64
- func Check(err error) bool
- func CheckNil(ptr interface{}) bool
- func Debug(msg string)
- func Error(msg string)
- func Exec(name string, arg ...string) (string, string, error)
- func GbkToUtf8(str string) (string, error)
- func Gopath() string
- func HttpDownload(url string, out string)
- func HttpPostJson(postBody []byte, url string) ([]byte, error)
- func Info(msg string)
- func Max(args ...float64) float64
- func Min(args ...float64) float64
- func Pwd() string
- func SetLogLevel(level int)
- func Slash() string
- func StringCount(str string) int
- func TimeString() string
- func TmpFile() string
- func TmpPath() string
- func UtcStringToYear(str string) int
- func Utf8ToGbk(str string) (string, error)
- func Warn(msg string)
Constants ¶
View Source
const ( LogLevelError = iota LogLevelWarn LogLevelInfo LogLevelDebug )
Variables ¶
This section is empty.
Functions ¶
func HttpDownload ¶
func SetLogLevel ¶
func SetLogLevel(level int)
func StringCount ¶
func TimeString ¶
func TimeString() string
func UtcStringToYear ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.