Documentation ¶
Index ¶
- Variables
- func BytesToInt(b []byte) int
- func Decode(b []byte, e string) (string, error)
- func Encode(s, e string) ([]byte, error)
- func GetFileName(fp string) string
- func IsHan(word string) bool
- func NewReader(input io.Reader) io.Reader
- func Product[T any](sli [][]T) [][]T
- func Read(path string) (io.Reader, error)
- func ReadUint16(r io.Reader) uint16
- func ReadUint32(r io.Reader) uint32
- func RemoveEmptyItems[T []any | string | map[any]any](slice []T) []T
- func To2Bytes[T integer](i T) []byte
- func To4Bytes[T integer](i T) []byte
- func TrimSpace(s string) string
- func Unique[T comparable](slice []T) []T
Constants ¶
This section is empty.
Variables ¶
View Source
var LineBreak string
不同操作系统的换行符
Functions ¶
func Product ¶
func Product[T any](sli [][]T) [][]T
求笛卡尔积
[[a,b],[c],[d,e]]->[[a,c,d],[a,c,e],[b,c,d],[b,c,e]]
func RemoveEmptyItems ¶ added in v0.3.3
去除切片中的空元素
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.