endpoint

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Root = 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 JoinWithPathVariable added in v0.0.2

func JoinWithPathVariable(base Endpoint, path string, pathVariables ...string) Endpoint

func New

func New(path string) Endpoint

func NewWithPathVariable added in v0.0.2

func NewWithPathVariable(path string, pathVariable ...string) Endpoint

func (Endpoint) FormattedPath

func (m Endpoint) FormattedPath(format Format) string

func (Endpoint) FormattedPathWithPathVariable added in v0.0.2

func (m Endpoint) FormattedPathWithPathVariable(format Format) string

func (Endpoint) Path

func (m Endpoint) Path() string

func (Endpoint) PathWithPathVariable added in v0.0.2

func (m Endpoint) PathWithPathVariable() 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