stringutil

package
v0.5.0-rc01 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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