route

package
v0.0.0-...-a84335b Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package route helps build paths from named routes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsPath

func AbsPath(router *mux.Router, name string, args ...any) string

AbsPath returns the full url for a named route including the schema, host, port, and path.

func Path

func Path(router *mux.Router, name string, args ...any) string

Path finds a route by name and formats it for use in a template. args are given in pairs, name then value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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