rewrite

package
v0.0.0-...-4c85db1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RewriteRule

type RewriteRule struct {
	From string
	To   string
}

type URLRewriter

type URLRewriter struct {
	// contains filtered or unexported fields
}

Rewriter ...

func NewRewriter

func NewRewriter(from string, to string) (*URLRewriter, error)

func (*URLRewriter) Handle

func (*URLRewriter) Rewrite

func (u *URLRewriter) Rewrite(path []byte) ([]byte, bool)

Jump to

Keyboard shortcuts

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