util

package
v1.10.12-go1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: MIT Imports: 6 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsciiToLowerCase added in v1.4.2

func AsciiToLowerCase(input string) string

func CleanUrlPath

func CleanUrlPath(urlPath string) string

func CompareNumInFilename added in v1.8.0

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

func Contains

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

func ExtractHostnamePort added in v1.9.0

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

func ExtractListenPort added in v1.9.0

func ExtractListenPort(listen string) string

func FormatTimeSecond

func FormatTimeSecond(t time.Time) string

func HasFsPrefixDir

func HasFsPrefixDir(fsPath, prefix string) bool

func HasUrlPrefixDir

func HasUrlPrefixDir(urlPath, prefix string) bool

func IsDigits

func IsDigits(input string) bool

func NormalizeFsPath added in v1.4.2

func NormalizeFsPath(input string) (string, error)

func SplitFilename

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

func WildcardToRegexp

func WildcardToRegexp(wildcard string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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