link

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: LGPL-2.1 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Obj

type Obj struct {
	Scheme      string
	EntryHost   string
	RoutePrefix string
}

Obj carries entry host context: scheme, optional entry host, and nested route prefix.

func (Obj) Abs

func (obj Obj) Abs(path string) string

Abs returns an absolute URL for the entry scheme, or a relative path when entry host is empty.

func (Obj) Key

func (obj Obj) Key(key string, suffix string) string

Key builds a per-key web path with the nested prefix when nested mode is active.

Jump to

Keyboard shortcuts

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