urlbuilder

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slugger added in v0.0.7

type Slugger interface {
	Slug() string
}

type URLBuilder

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

func New

func New(salt string) (*URLBuilder, error)

func (*URLBuilder) EncodeID

func (ub *URLBuilder) EncodeID(id primitives.ID) (string, error)

func (*URLBuilder) ParseID

func (ub *URLBuilder) ParseID(hash string) (primitives.ID, error)

func (*URLBuilder) Path

func (ub *URLBuilder) Path(method string, idn primitives.Identifiable,
	params ...primitives.Identifiable) (string, error)

Jump to

Keyboard shortcuts

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