endpoint

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootEndpoint = New(rootPath)

Functions

This section is empty.

Types

type Endpoint

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

func Join

func Join(base Endpoint, path string) Endpoint

func New

func New(path string) Endpoint

func (Endpoint) FormattedPath

func (m Endpoint) FormattedPath(format Format) string

func (Endpoint) Path

func (m Endpoint) Path() string

type Format

type Format int64
const (
	LeadingSlash Format = iota
	TrailingSlash
	LeadingAndTrailingSlash
	NoSlash
)

Jump to

Keyboard shortcuts

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