utils

package
v0.0.0-...-ee1e84b Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DAY = iota
	HOUR
	MINUTE
)
View Source
const (
	RandomStringModNumberPlusLetter = iota
	RandomStringModNumberPlusLetterPlusSymbol
	RandomStringModNumber
)

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(key string, cipherText []byte) ([]byte, error)

func Encrypt

func Encrypt(key string, plainText []byte) ([]byte, error)

func GetMultiWriter

func GetMultiWriter(split int) io.Writer

func IsNumeric

func IsNumeric(str string, trim bool) bool

func KeepNewDateLogFile

func KeepNewDateLogFile()

func RandStr

func RandStr(length int64, mod uint32) string

func RemoveNewline

func RemoveNewline(str string) string

移除连着的换行符,最多保留一个,目前用于AI场景

func SubStr

func SubStr(s string, max int) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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