Documentation ¶
Overview ¶
Package routes is used for parsing route comments and route field tags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prefixes ¶
type Prefixes []Route
Prefixes stores information about route prefixes of a controller.
func NewPrefixes ¶
func NewPrefixes() Prefixes
NewPrefixes allocates and returns a new Prefixes object.
func ParseTag ¶
ParseTag gets a tag string and extracts route prefixes out of it. If that's not possible, {}, false is returned.
func (Prefixes) ParseRoutes ¶
ParseRoutes gets a controller name and an action function and returns all the routes that are presented in its comments concatenated with the specified prefixes. If method is specified however pattern isn't, controller/action combination is used as a pattern.
Click to show internal directories.
Click to hide internal directories.