bdk

package
v0.0.0-...-44a0b5b Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DayTimeFmt  = "2006-01-02"
	DateTimeFmt = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

func ArrChunkI64

func ArrChunkI64(arr []int64, size int) [][]int64

func ArrChunkStr

func ArrChunkStr(arr []string, size int) [][]string

func Bytes2Str

func Bytes2Str(bs []byte) string

func CompareVersion

func CompareVersion(v1, v2 string) int

func InArrayInt

func InArrayInt(a int, arr []int) bool

func IsCtxDone

func IsCtxDone(c context.Context) bool

func IsFile

func IsFile(filename string) bool

func RandomAlphaNum

func RandomAlphaNum(lengthParam ...int) []byte

func Str2Bytes

func Str2Bytes(str string) []byte

Types

type DateTime

type DateTime time.Time // 2020-01-02 15:04:05

func (*DateTime) MarshalJSON

func (t *DateTime) MarshalJSON() ([]byte, error)

func (*DateTime) String

func (t *DateTime) String() string

func (*DateTime) UnmarshalJSON

func (t *DateTime) UnmarshalJSON(b []byte) error

type DayTime

type DayTime time.Time // 2020-01-02

func (*DayTime) MarshalJSON

func (t *DayTime) MarshalJSON() ([]byte, error)

func (*DayTime) String

func (t *DayTime) String() string

func (*DayTime) UnmarshalJSON

func (t *DayTime) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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