Documentation ¶
Index ¶
- func AppendTimeSecond(buf []byte, t time.Time) []byte
- func AsciiToLowerCase(input string) string
- func ByteToHex(b byte) (high, low byte)
- func CleanUrlPath(urlPath string) string
- func CompareNumInFilename(prev, next []byte) (less, ok bool)
- func Contains(collection []string, find string) bool
- func EscapeControllingRune(str string) []byte
- func ExtractHostFromUrl(url string) string
- func ExtractHostnamePort(host string) (hostname, port string)
- func ExtractHostsFromUrls(urls []string) []string
- func ExtractListenPort(listen string) string
- func FormatTimeSecond(t time.Time) string
- func GetBoolEnv(key string) bool
- func GetContentType(filename string, rd io.Reader) (string, error)
- func GetTTYFile() (file *os.File, teardown func() error)
- func HasFsPrefixDir(fsPath, prefix string) bool
- func HasUrlPrefixDir(urlPath, prefix string) bool
- func InPlaceDedup(inputs []string) []string
- func IsDigits(input string) bool
- func IsPathEqual(a, b string) bool
- func NormalizeUrlPath(input string) (string, error)
- func SplitFilename(filename string) (prefix, suffix string)
- func WildcardToStrRegexp(wildcard string) string
- type StrEqualFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsciiToLowerCase ¶ added in v1.4.2
func CleanUrlPath ¶
func CompareNumInFilename ¶ added in v1.8.0
func EscapeControllingRune ¶ added in v1.13.7
func ExtractHostFromUrl ¶ added in v1.15.0
func ExtractHostnamePort ¶ added in v1.9.0
func ExtractHostsFromUrls ¶ added in v1.15.0
func ExtractListenPort ¶ added in v1.9.0
func FormatTimeSecond ¶
func GetBoolEnv ¶ added in v1.13.0
func GetContentType ¶ added in v1.11.0
func GetTTYFile ¶ added in v1.13.0
func HasFsPrefixDir ¶
func HasUrlPrefixDir ¶
func InPlaceDedup ¶ added in v1.16.0
func IsPathEqual ¶ added in v1.15.0
func NormalizeUrlPath ¶ added in v1.15.0
func SplitFilename ¶
func WildcardToStrRegexp ¶ added in v1.15.1
Types ¶
type StrEqualFunc ¶ added in v1.13.0
Click to show internal directories.
Click to hide internal directories.