helper

package
v0.0.0-...-3363d21 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func B2S

func B2S(b []byte) string

B2S []byte -> string

func GetBeforeTime

func GetBeforeTime(_day int) *time.Time

GetBeforeTime 获取n天前的日期 _day为负则代表取前几天,为正则代表取后几天,0则为今天

func Now

func Now() *time.Time

Now 当前时间

func PrintVar

func PrintVar(i interface{}, ident int)

func S2B

func S2B(s string) []byte

S2B string -> []byte 转换出来的[]byte不能有修改操作

func StringToTime

func StringToTime(date string) (*time.Time, error)

StringToTime 时间字符转为时间

Types

type SliceHeader

type SliceHeader struct {
	Data uintptr
	Len  int
	Cap  int
}

SliceHeader Slice Header

type StringHeader

type StringHeader struct {
	Data uintptr
	Len  int
}

StringHeader String Header

Jump to

Keyboard shortcuts

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