common

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 7 Imported by: 1 module, 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

This section is empty.

Functions

func Body

func Body(w io.Writer) error
func Footer(w io.Writer) error

func GetJSBlock

func GetJSBlock(buffer *bytes.Buffer, js string)

GetJSBlock return a JS wrapped code block

func Head(w io.Writer, title string, customHeaderBlock string) error

func Message

func Message(w http.ResponseWriter, r *http.Request, title, message string) error
func Nav(w http.ResponseWriter, r *http.Request, current string) error
func NavCurrent(cur, nav string) string

NavCurrent return the current nav html code snippet

func OffCanvas

func OffCanvas(w io.Writer, current string) error

func RegisterNav

func RegisterNav(name, displayName string, url string)

RegisterNav register a custom nav link

Types

This section is empty.

Jump to

Keyboard shortcuts

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