simple

package module
v0.0.0-...-e540e72 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: MIT Imports: 0 Imported by: 0

README

simple

A simple tool box with various useful tools inside.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool interface {
	Bool() bool // 返回对象的 bool 类型值
}

Bool 定义了返回 bool 类型值的接口

type Bytes

type Bytes interface {
	Bytes() []byte // 返回对象的字节切片表示
}

Bytes 定义了返回字节切片的接口

type Float32

type Float32 interface {
	Float32() float32 // 返回对象的 float32 类型值
}

Float32 定义了返回 float32 类型值的接口

type Float64

type Float64 interface {
	Float64() float64 // 返回对象的 float64 类型值
}

Float64 定义了返回 float64 类型值的接口

type Int

type Int interface {
	Int() int // 返回对象的 int 类型值
}

Int 定义了返回 int 类型值的接口

type Int16

type Int16 interface {
	Int16() int16 // 返回对象的 int16 类型值
}

Int16 定义了返回 int16 类型值的接口

type Int32

type Int32 interface {
	Int32() int32 // 返回对象的 int32 类型值
}

Int32 定义了返回 int32 类型值的接口

type Int64

type Int64 interface {
	Int64() int64 // 返回对象的 int64 类型值
}

Int64 定义了返回 int64 类型值的接口

type Int8

type Int8 interface {
	Int8() int8 // 返回对象的 int8 类型值
}

Int8 定义了返回 int8 类型值的接口

type Logger

type Logger interface {
	// Debug 记录调试级别的日志,参数为任意类型的值
	Debug(v ...interface{})

	// Info 记录信息级别的日志,参数为任意类型的值
	Info(v ...interface{})

	// Warn 记录警告级别的日志,参数为任意类型的值
	Warn(v ...interface{})

	// Error 记录错误级别的日志,参数为任意类型的值
	Error(v ...interface{})

	// Fatal 记录致命错误级别的日志,参数为任意类型的值,通常会导致程序退出
	Fatal(v ...interface{})

	// Debugf 记录调试级别的日志,支持格式化字符串和参数
	Debugf(format string, v ...interface{})

	// Infof 记录信息级别的日志,支持格式化字符串和参数
	Infof(format string, v ...interface{})

	// Warnf 记录警告级别的日志,支持格式化字符串和参数
	Warnf(format string, v ...interface{})

	// Errorf 记录错误级别的日志,支持格式化字符串和参数
	Errorf(format string, v ...interface{})

	// Fatalf 记录致命错误级别的日志,支持格式化字符串和参数,通常会导致程序退出
	Fatalf(format string, v ...interface{})
}

Logger 定义了日志记录器的接口,支持不同级别的日志记录和格式化输出

type MSBool

type MSBool map[string]bool

type MSByte

type MSByte map[string]byte

type MSInt

type MSInt map[string]int

type MSInt16

type MSInt16 map[string]int16

type MSInt32

type MSInt32 map[string]int32

type MSInt64

type MSInt64 map[string]int64

type MSInt8

type MSInt8 map[string]int8

type MSString

type MSString map[string]string

type MSUint

type MSUint map[string]uint

type MSUint16

type MSUint16 map[string]uint16

type MSUint32

type MSUint32 map[string]uint32

type MSUint64

type MSUint64 map[string]uint64

type MSUint8

type MSUint8 map[string]uint8

type Map

type Map map[string]any

type MapAny

type MapAny map[string]any

type SBool

type SBool []bool

type SByte

type SByte []byte

type SInt

type SInt []int

type SInt16

type SInt16 []int16

type SInt32

type SInt32 []int32

type SInt64

type SInt64 []int64

type SInt8

type SInt8 []int8

type SString

type SString []string

type SUint

type SUint []uint

type SUint16

type SUint16 []uint16

type SUint32

type SUint32 []uint32

type SUint64

type SUint64 []uint64

type SUint8

type SUint8 []uint8

type Slices

type Slices []any

type String

type String interface {
	String() string // 返回对象的字符串表示
}

String 定义了返回字符串表示的接口

type Uint

type Uint interface {
	Uint() uint // 返回对象的 uint 类型值
}

Uint 定义了返回 uint 类型值的接口

type Uint16

type Uint16 interface {
	Uint16() uint16 // 返回对象的 uint16 类型值
}

Uint16 定义了返回 uint16 类型值的接口

type Uint32

type Uint32 interface {
	Uint32() uint32 // 返回对象的 uint32 类型值
}

Uint32 定义了返回 uint32 类型值的接口

type Uint64

type Uint64 interface {
	Uint64() uint64 // 返回对象的 uint64 类型值
}

Uint64 定义了返回 uint64 类型值的接口

type Uint8

type Uint8 interface {
	Uint8() uint8 // 返回对象的 uint8 类型值
}

Uint8 定义了返回 uint8 类型值的接口

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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