stringutil

package
v1.0.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIPAndPort

func GetIPAndPort(address string) ([]*net.TCPAddr, error)

func GetTrieKey

func GetTrieKey(method string, path string) string

func IsMatchAll

func IsMatchAll(key string) bool

func IsPathVariableOrWildcard

func IsPathVariableOrWildcard(key string) bool

IsPathVariableOrWildcard return if is a PathVariable (:id, true)

func IsWildcard

func IsWildcard(key string) bool

IsWildcard return if is *

func ResolveTimeStr2Time

func ResolveTimeStr2Time(currentV string, defaultV time.Duration) time.Duration

func Split

func Split(path string) []string

Split url split to []string by "/"

func VariableName

func VariableName(key string) string

VariableName extract VariableName (:id, name = id)

Types

This section is empty.

Jump to

Keyboard shortcuts

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