misc

package
v0.0.0-...-509a8f4 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoWidth

func AutoWidth(s string, length int) int

func Base64Decode

func Base64Decode(encodeString string) (string, error)

func Base64Encode

func Base64Encode(keyword string) string

func CloneIntMap

func CloneIntMap(intMap map[int]string) map[int]string

func CloneMap

func CloneMap(m map[string]string) map[string]string

func CloneStrMap

func CloneStrMap(strMap map[string]string) map[string]string

func CopySlice

func CopySlice[T any](slice []T) []T

func FixLine

func FixLine(line string) string

func FixMap

func FixMap(m map[string]string) map[string]string

func Intersection

func Intersection(a []string, b []string) (inter []string)

func IsDuplicate

func IsDuplicate[T any](slice []T, val T) bool

func MustLength

func MustLength(s string, i int) string

func Percent

func Percent(int1 int, int2 int) string

func RandomString

func RandomString(i ...int) string

func RemoveDuplicateElement

func RemoveDuplicateElement[T any](slice []T, elems ...T) []T

func StrRandomCut

func StrRandomCut(s string, length int) string

func ToMap

func ToMap(param interface{}) map[string]string

func Xrange

func Xrange(args ...int) []int

Types

type Stringer

type Stringer interface {
	String() string
}

Jump to

Keyboard shortcuts

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