Documentation ¶
Index ¶
- func CheckError(err error)
- func CmdRun(cmdline string, w bool) (string, error)
- func CompressZip(list []string, zipname string) error
- func Md5sum(file string) string
- func Sleep(val int)
- func TimeFormat(val interface{}) (string, error)
- func TimeFormatTo(val interface{}, timestr string) (string, error)
- func ToByte(a interface{}) ([]byte, error)
- func ToFloat32(a interface{}) (float32, error)
- func ToFloat32Round(a interface{}, rd int) (float32, error)
- func ToFloat64(a interface{}) (float64, error)
- func ToFloat64Round(a interface{}, rd int) (float64, error)
- func ToInt64Ceil(a interface{}) (int64, error)
- func ToInt64Floor(a interface{}) (int64, error)
- func ToInt64Round(a interface{}) (int64, error)
- func ToIntCeil(a interface{}) (int, error)
- func ToIntFloor(a interface{}) (int, error)
- func ToIntRound(a interface{}) (int, error)
- func ToString(a interface{}) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressZip ¶
func TimeFormat ¶
将表现为11或13位数字的字符串的任意类型数据,转化为一个"2006-01-02 15:04:05"时间格式化的字符串
func TimeFormatTo ¶
将表现为11或13位数字的字符串的任意类型数据,转化为一个时间格式化的字符串
func ToFloat32Round ¶
转floate32,rd保留小数点后几位
func ToFloat64Round ¶
转floate64,rd保留小数点后几位
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package goconfig is a fully functional and comments-support configuration file(.ini) parser.
|
Package goconfig is a fully functional and comments-support configuration file(.ini) parser. |
Package httplib is used as http.Client Usage: import "github.com/astaxie/beego/httplib" b := httplib.Post("http://beego.me/") b.Param("username","astaxie") b.Param("password","123456") b.PostFile("uploadfile1", "httplib.pdf") b.PostFile("uploadfile2", "httplib.txt") str, err := b.String() if err != nil { t.Fatal(err) } fmt.Println(str) more docs http://beego.me/docs/module/httplib.md
|
Package httplib is used as http.Client Usage: import "github.com/astaxie/beego/httplib" b := httplib.Post("http://beego.me/") b.Param("username","astaxie") b.Param("password","123456") b.PostFile("uploadfile1", "httplib.pdf") b.PostFile("uploadfile2", "httplib.txt") str, err := b.String() if err != nil { t.Fatal(err) } fmt.Println(str) more docs http://beego.me/docs/module/httplib.md |
Click to show internal directories.
Click to hide internal directories.