routespec

package
v0.0.0-...-c1a3bfb Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RouteSpec

type RouteSpec struct {
	Host  string
	Path  string
	Value string
	IsURL bool
}

A RouteSpec is a parsed route specification

func ParseRouteSpec

func ParseRouteSpec(s string) (*RouteSpec, error)

ParseRouteSpec parses a string route specification

func (*RouteSpec) MuxMatch

func (rp *RouteSpec) MuxMatch() string

MuxMatch produces a match clause suitable for passing to a Mux

Jump to

Keyboard shortcuts

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