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: 0

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