funcmap

package
v0.0.0-...-cebdb6e Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CacheBuster stores a random string used as a cache buster for static files.
	CacheBuster = random.String(10)
)

Functions

func File

func File(filepath string) string

File appends a cache buster to a given filepath so it can remain cached until the app is restarted

func GetFuncMap

func GetFuncMap() template.FuncMap

GetFuncMap provides a template function map

func HasField

func HasField(v interface{}, name string) bool

HasField checks if an interface contains a given field

func Link(url, text, currentPath string, classes ...string) template.HTML

Link outputs HTML for a link element, providing the ability to dynamically set the active class

Types

This section is empty.

Jump to

Keyboard shortcuts

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