Documentation ¶
Index ¶
- Variables
- func ByteToFloat64(bytes []byte) float64
- func BytesToInt(b []byte) int
- func ChkError(err error)
- func Contains(all string, substr string) bool
- func DateBeforeFormat(day int) string
- func DateFormat(timestamp int, formatString string) string
- func DateFormatYmd(timestamp int) string
- func DateSelfBeforeFormat(day int, date string) string
- func DateUnix() int
- func DatetimeToMilliSecond(datetime string) int64
- func FileExist(fileName string) bool
- func Float32ToStr(num float32) string
- func Float64ToStr(num float64) string
- func FloatRound(f float64, n int) float64
- func GenerateFile(fileName string, str string)
- func GetExecutePath() string
- func GetFormatDateNow(formatString string) string
- func GetText(str string) string
- func HttpGet(url string, timeout int, cookiestr string) []byte
- func HttpGetCookie(url string, cookiestr string, timeout int) []byte
- func HttpGetProxy(client *http.Client, url string, cookiestr string) []byte
- func HttpPost(url string, data url.Values, timeout int) []byte
- func HttpPostError(url string, data url.Values, timeout int) ([]byte, error)
- func HttpPostJson(url string, data []byte, timeout int) []byte
- func Int64ToStr(num int64) string
- func IntToStr(str int) string
- func Interface2Float64(inter interface{}) float64
- func Interface2Int(inter interface{}) int
- func Interface2String(inter interface{}) string
- func JsonDecode(data []byte, v interface{}) error
- func JsonEncode(v interface{}) ([]byte, error)
- func MathDecimal2(value float64) float64
- func PrintType(s interface{})
- func PrintVal(s interface{})
- func ReadFile(fileName string) (contents []string)
- func ReadFileString(fileName string) (contents string)
- func ReadLine(filename string, chanr chan string)
- func StrToInt(str string) int
- func StrToInt64(str string) int64
- func TransLocal(utcTime string, format string) string
- func Trims(str string) string
- func UTCTransLocal(utcTime string, format string) string
- func WriteFile(filename string, msg string)
- func WriteFileCustom(filename string, msg string, optype string)
Constants ¶
This section is empty.
Variables ¶
View Source
var GClient *http.Client
Functions ¶
func ByteToFloat64 ¶ added in v1.0.2
func BytesToInt ¶ added in v1.0.2
func DateFormat ¶ added in v1.1.0
时间戳转年月日
func DateSelfBeforeFormat ¶ added in v1.1.0
根据定义时间往前推
func DatetimeToMilliSecond ¶ added in v1.1.2
DatetimeToMilliSecond 日期时间格式转换成毫秒
func Float32ToStr ¶ added in v1.1.0
func Float64ToStr ¶ added in v1.1.0
func FloatRound ¶ added in v1.1.0
func GenerateFile ¶ added in v1.1.1
func GetFormatDateNow ¶ added in v1.1.0
"2006-01-02 15:04:05"
func HttpGetCookie ¶ added in v1.1.0
func HttpGetProxy ¶ added in v1.1.0
func HttpPostError ¶ added in v1.1.1
生成client 通过client的Do方法执行
func HttpPostJson ¶ added in v1.1.1
生成client 通过client的Do方法执行
func Int64ToStr ¶ added in v1.1.0
func Interface2Float64 ¶ added in v1.0.2
func Interface2Float64(inter interface{}) float64
func Interface2Int ¶ added in v1.0.2
func Interface2Int(inter interface{}) int
func Interface2String ¶ added in v1.0.2
func Interface2String(inter interface{}) string
func JsonDecode ¶
func JsonEncode ¶
func ReadFileString ¶ added in v1.1.1
func StrToInt64 ¶ added in v1.1.0
func TransLocal ¶ added in v1.1.1
func UTCTransLocal ¶ added in v1.1.1
func WriteFileCustom ¶ added in v1.1.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.