collect

package
v0.0.0-...-035e5cb Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentDateFormat

func CurrentDateFormat(fmt string) string

func CurrentDateTime

func CurrentDateTime() string

func GetFilters

func GetFilters() map[string]any

func GetKey

func GetKey(key string) string

func GetPinyin

func GetPinyin(txt string) string

func HashSha

func HashSha(str string) string

func Init

func Init(startTime string, machineID int64) (err error)

func IsEmpty

func IsEmpty(value interface{}) bool

func Md5

func Md5(str string) string

func Must

func Must(value interface{}) bool

func Pinyin

func Pinyin(source string) string

func Replace

func Replace(source string, from string, to string) string

func SnowID

func SnowID() int64

SnowID 生成 64 位的 雪花 ID

func SubStr

func SubStr(content string, start int, end int) string

SubStr 针对负数和0 做了特殊处理 1. content[0:4] ,从开始节点到第5个字符 2. content[0:0] ,从开始节点到最后1个字符 3. content[0:-1] ,从开始节点到倒数第1个字符 3. content[-6:-1] ,从倒数第6个字符到倒数第1个字符

func Uuid

func Uuid() string

Types

type SSHAEncoder

type SSHAEncoder struct {
}

func (SSHAEncoder) Encode

func (enc SSHAEncoder) Encode(rawPassPhrase []byte) ([]byte, error)

Encode encodes the []byte of raw password

func (SSHAEncoder) Matches

func (enc SSHAEncoder) Matches(encodedPassPhrase, rawPassPhrase []byte) bool

Matches matches the encoded password and the raw password

Jump to

Keyboard shortcuts

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