Documentation ¶
Index ¶
- func IntToChar(arr []int) string
- func IsNumeric(s string) bool
- func Max[T Numeric](n ...T) (T, error)
- func Min[T Numeric](n ...T) (T, error)
- func PrintHexArr(data []byte)
- func ReversePrintArr(arr []string)
- func ScoreByte(input []byte) (score float64, err error)
- func ScoreStr(input string) (score float64, err error)
- func SliceReverse[T any](slice []T) []T
- func Xor(a, b []byte) ([]byte, error)
- type ColorLogHandler
- type Comparable
- type Numeric
- type Pair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNumeric ¶ added in v0.0.5
isNumeric checks if a string contains only numeric characters. It iterates through each rune in the string and returns false 遍历检查字符串是否为仅数字
func PrintHexArr ¶ added in v0.0.3
func PrintHexArr(data []byte)
func ReversePrintArr ¶ added in v0.0.3
func ReversePrintArr(arr []string)
Types ¶
type ColorLogHandler ¶
type ColorLogHandler struct {
// contains filtered or unexported fields
}
ColorLogHandler defines a custom Handler to implement colorized output. 定义一个自定义 Handler 来实现彩色输出
func NewColorLogHandler ¶
func NewColorLogHandler() *ColorLogHandler
NewColorLogHandler creates a new colorized log handler that outputs only to os.Stdout. 创建新的彩色日志处理器,输出固定到 os.Stdout
type Comparable ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.