parser

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PathPiece

type PathPiece struct {
	IsVar bool
	Name  string
}

func (*PathPiece) String

func (p *PathPiece) String() string

type Rule

type Rule struct {
	// Strict flag
	IsStrict bool

	// Request method
	Method string
	// Request path
	Path string

	// Request path in pieces
	Pieces container.List[*PathPiece]
	// Request path depth
	Depth int
	// Request extensions
	Ext string
}

func (*Rule) Init

func (r *Rule) Init()

func (*Rule) String added in v0.1.2

func (r *Rule) String() string

Jump to

Keyboard shortcuts

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