links

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package links resolves URL templates with {placeholder} substitution.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

func Resolve(tmpl string, vars map[string]string) string

Resolve substitutes {key} placeholders in tmpl from vars. If tmpl references any key that is missing or empty, Resolve returns "" — callers treat that as "no link", so partially-configured runs degrade cleanly. tmpl with no placeholders is returned verbatim.

Types

This section is empty.

Jump to

Keyboard shortcuts

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