utils

package
v0.0.0-...-586b9b8 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMd5Str

func GetMd5Str(str string) string

func GetTokenStr

func GetTokenStr() string

func NowTimeStamp

func NowTimeStamp() int64

NowTimeStamp return 1657255820

func NowTimeStr

func NowTimeStr() string

NowTimeStr return 2022-01-21 12:21:31

func NowTimeStr2TimeStamp

func NowTimeStr2TimeStamp(str string) int64

NowTimeStr2TimeStamp 2022-01-21 12:21:31 -> 1657255820

func TimeStamp2NowTimeStr

func TimeStamp2NowTimeStr(stamp int64) string

TimeStamp2NowTimeStr 1657255820 -> 2022-01-21 12:21:31

Types

type IntMatrix

type IntMatrix []int64

func (IntMatrix) Equals

func (m IntMatrix) Equals(other IntMatrix) bool

func (*IntMatrix) Scan

func (m *IntMatrix) Scan(value interface{}) error

func (IntMatrix) Value

func (m IntMatrix) Value() (driver.Value, error)

type IntMatrix2

type IntMatrix2 [][]int64

func (IntMatrix2) Equals

func (m IntMatrix2) Equals(other IntMatrix2) bool

func (*IntMatrix2) Scan

func (m *IntMatrix2) Scan(value interface{}) error

func (IntMatrix2) Value

func (m IntMatrix2) Value() (driver.Value, error)

type IntMatrix3

type IntMatrix3 [][][]int64

func (IntMatrix3) Equals

func (m IntMatrix3) Equals(other IntMatrix3) bool

func (*IntMatrix3) Scan

func (m *IntMatrix3) Scan(value interface{}) error

func (IntMatrix3) Value

func (m IntMatrix3) Value() (driver.Value, error)