Documentation ¶
Index ¶
- Constants
- func BytesToHex(data []byte, padding ...string) string
- func FormatTime(t time.Time) (s string)
- func Int64ToBytes(n int64) (bs []byte)
- func Join(delimiter string, s ...string) string
- func NewInterval(ctx context.Context, duration time.Duration, exitOnErr bool, task func() error)
- func PKCS5Padding(data []byte, blockSize int) []byte
- func PKCS5UnPadding(data []byte) []byte
- func RandHexStr(n int) (s string)
- func RandStr(n int) (s string)
- func UUIDString() (s string)
- func Walk(root string, depth int, fun func(path string, info os.FileInfo)) (err error)
- func ZerosPadding(data []byte, blockSize int) []byte
- func ZerosUnPadding(data []byte) []byte
Constants ¶
View Source
const ( DefaultTimeFormatter = "2006-01-02 15:04:05" DateFormatter = "20060102" DatePlusFormatter = "2006-01-02" TimeFormatter = "150405" TimePlusFormatter = "15:04:05" )
Variables ¶
This section is empty.
Functions ¶
func BytesToHex ¶
BytesToHex 字节转换Hex字符串 padding[0]: 左填充 padding[1]:右填充(最后一个字节不填充)
func FormatTime ¶
func NewInterval ¶
func PKCS5UnPadding ¶
func UUIDString ¶
func UUIDString() (s string)
func ZerosUnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.