stringutil

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 GetTrieKeyWithPrefix

func GetTrieKeyWithPrefix(method, path, prefix string, isPrefix bool) string

func IsMatchAll

func IsMatchAll(key string) bool

IsMatchAll return if is **

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