util

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsciiToLowerCase

func AsciiToLowerCase(input string) string

func ByteToHex

func ByteToHex(b byte) (high, low byte)

func CleanUrlPath

func CleanUrlPath(urlPath string) string

func CompareNumInFilename

func CompareNumInFilename(prev, next []byte) (less, ok bool)

func Contains

func Contains(collection []string, find string) bool

func EscapeControllingRune

func EscapeControllingRune(str string) []byte

func ExtractHostnamePort

func ExtractHostnamePort(host string) (hostname, port string)

func ExtractListenPort

func ExtractListenPort(listen string) string

func FormatTimeSecond

func FormatTimeSecond(t time.Time) string

func GetBoolEnv

func GetBoolEnv(key string) bool

func GetContentType

func GetContentType(filename string, rd io.Reader) (string, error)

func HasFsPrefixDir

func HasFsPrefixDir(fsPath, prefix string) bool

func HasUrlPrefixDir

func HasUrlPrefixDir(urlPath, prefix string) bool

func HasUrlPrefixDirNoCase

func HasUrlPrefixDirNoCase(urlPath, prefix string) bool

func IsDigits

func IsDigits(input string) bool

func IsStrEqualAccurate

func IsStrEqualAccurate(a, b string) bool

func IsStrEqualNoCase

func IsStrEqualNoCase(a, b string) bool

func NormalizeFsPath

func NormalizeFsPath(input string) (string, error)

func SplitFilename

func SplitFilename(filename string) (prefix, suffix string)

func WildcardToRegexp

func WildcardToRegexp(wildcard string) string

Types

type StrEqualFunc

type StrEqualFunc func(a, b string) bool

Jump to

Keyboard shortcuts

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