utils

package
v0.0.0-...-13800ec Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndLine

func EndLine() string

EndLine returns the a newline escape character

func GqlFuncMap

func GqlFuncMap() template.FuncMap

GdlFuncMap return a funcmap of function used in different templates

func MustCheck

func MustCheck(err error)

MustCheck panics when the error is not nil

func PrintErrorAndExit

func PrintErrorAndExit(message, errorTemplate string)

func Tmpl

func Tmpl(text string, data interface{})

Execute the template

func TmplToString

func TmplToString(tpl string, data interface{}) string

TmplToString parses a text template and return the result as a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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