misc

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: BSD-3-Clause Imports: 8 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 CloneStrMap

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

func FileIsExist

func FileIsExist(path string) bool

func FilterPrintStr

func FilterPrintStr(s string) string

func First2Upper

func First2Upper(s string) string

func First2UpperForSlice

func First2UpperForSlice(s []string) []string

func FixLine

func FixLine(line string) string

func FixMap

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

func IntArr2StrArr

func IntArr2StrArr(intArr []int) []string

func Intersection

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

func IsInIntArr

func IsInIntArr(slice []int, val int) bool

func IsInStrArr

func IsInStrArr(slice []string, val string) 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 ReadLine

func ReadLine(fileName string, handler func(string, bool)) error

func ReadLineAll

func ReadLineAll(fileName string) []string

func RemoveDuplicateElement

func RemoveDuplicateElement(languages []string) []string

func RemoveDuplicateElementForMultiple

func RemoveDuplicateElementForMultiple(mainArr, otherArr []string) []string

func Str2Int

func Str2Int(str string) int

func StrArr2IntArr

func StrArr2IntArr(strArr []string) ([]int, error)

func StrMap2Str

func StrMap2Str(stringMap map[string]string, keyPrint bool) string

func StrRandomCut

func StrRandomCut(s string, length int) string

func UniStrAppend

func UniStrAppend(slice []string, elems ...string) []string

func WriteLine

func WriteLine(fileName string, byte []byte) error

func Xrange

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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