internal

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelToSnake

func CamelToSnake(name string) string

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.

Jump to

Keyboard shortcuts

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