utils

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ArgsToMap

func ArgsToMap(args string) map[string]string

func C2x

func C2x(what byte, where []byte) []byte

func FileExists

func FileExists(filename string) bool

func IntInSlice

func IntInSlice(a int, list []int) bool

func IsAlnum

func IsAlnum(s string) bool

func IsDigit

func IsDigit(x byte) bool

func IsODigit

func IsODigit(x byte) bool

func IsSpace

func IsSpace(char byte) bool

func IsXDigit

func IsXDigit(char int) bool

func OpenFile

func OpenFile(path string) ([]byte, error)

func ParseQuery

func ParseQuery(query string, separator string) map[string][]string

func PhaseToInt

func PhaseToInt(data string) (int, error)

func RandomString

func RandomString(length int) string

func RemoveQuotes

func RemoveQuotes(s string) string

func StringInSlice

func StringInSlice(a string, list []string) bool

func StripSpaces

func StripSpaces(str string) string

func TrimLeftChars

func TrimLeftChars(s string, n int) string

func ValidHex

func ValidHex(x byte) bool

func X2c

func X2c(what string) byte

Types

type Unicode

type Unicode struct {
	Map string
	// contains filtered or unexported fields
}

func NewUnicode

func NewUnicode(uni string) (*Unicode, error)

InitUnicodeMapping creates unicode global mappings

func (*Unicode) At

func (u *Unicode) At(input int) int

At Get unicode mapping for input

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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