utils

package
v0.0.0-...-70ad6e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2023 License: EPL-1.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcurrentRun

func ConcurrentRun(n int, function func(no int))

ConcurrentRun 并发执行

func GetCurrentDir

func GetCurrentDir() string

GetCurrentDir 获取程序运行路径

func GetCurrentTimeMillis

func GetCurrentTimeMillis() int64

GetCurrentTimeMillis 当前系统毫秒

func GetCurrentTimeNano

func GetCurrentTimeNano() int64

GetCurrentTimeNano 当前系统毫秒

func GetCurrentTimestamp

func GetCurrentTimestamp() int32

GetCurrentTimestamp 当前系统秒

func GetDatetimeYmd

func GetDatetimeYmd() string

func GetDatetimeYmdHis

func GetDatetimeYmdHis() string

GetDatetimeYmdHis 时间原点:2006-01-02 15:04:05

func HttpGet

func HttpGet(url string, timeout int64) (string, error)

func HttpPost

func HttpPost(url string, postData string, timeout int64) (string, error)

func HttpPostByte

func HttpPostByte(url string, postData []byte, timeout int64) ([]byte, error)

func Int2Str

func Int2Str(n int) string

func Int64ToStr

func Int64ToStr(n int64) string

func Str2int

func Str2int(str string) (int, error)

func Str2int64

func Str2int64(str string) (int64, error)

func ToJSON

func ToJSON(jsonStr string, v interface{}) (interface{}, error)

func ToJSONString

func ToJSONString(v interface{}) (string, error)

func ToJSONStringByte

func ToJSONStringByte(v interface{}) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL