stringutil

package
v0.5.1-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: Apache-2.0 Imports: 4 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 Split

func Split(path string) []string

Split url split to []string by "/"

func StrInSlice

func StrInSlice(str string, slice []string) bool

StrInSlice returns whether the string is in the slice.

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