Help us shape the future of Go! Take the 2026 Go Developer Survey

replacepath

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init added in v0.9.0

func Init() error

Types

type Config added in v0.8.0

type Config struct {
	Path string `mapstructure:"path"`
}

type ReplacePathMiddleware

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

func NewMiddleware

func NewMiddleware(newPath string) *ReplacePathMiddleware

func (*ReplacePathMiddleware) ServeHTTP

func (m *ReplacePathMiddleware) ServeHTTP(ctx context.Context, c *app.RequestContext)

Jump to

Keyboard shortcuts

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