Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelToSnake ¶
CamelToSnake COPY FROM: github.com/mailru/easyjson/gen.camelToSnake
func NameOfFunction ¶
func NameOfFunction(f interface{}) string
NameOfFunction returns the short name of the function f for documentation. It uses a runtime feature for debugging ; its value may change for later Go versions. COPY FROM: github.com/emicklei/go-restful/v3.nameOfFunction
Types ¶
type PathExpression ¶ added in v0.6.8
type PathExpression struct { LiteralCount int // the number of literal characters (means those not resulting from template variable substitution) VarNames []string // the names of parameters (enclosed by {}) in the path VarCount int // the number of named parameters (enclosed by {}) in the path Matcher *regexp.Regexp Source string // Path as defined by the RouteBuilder // contains filtered or unexported fields }
PathExpression holds a compiled path expression (RegExp) needed to match against Http request paths and to extract path parameter values. COPY FROM: github.com/emicklei/go-restful/v3.newPathExpression
func NewPathExpression ¶
func NewPathExpression(path string) (*PathExpression, error)
NewPathExpression creates a PathExpression from the input URL path. Returns an error if the path is invalid.
Click to show internal directories.
Click to hide internal directories.