functions

package
v0.0.0-...-3444db6 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFormInput

func CheckFormInput(key string, r *http.Request) (string, error)

CheckFormInput returns a value for the named component of the query and checks for allowed characters

func CreateDir

func CreateDir(path string) error

CreateDir creates a missing directory

func IsEmpty

func IsEmpty(s string) bool

IsEmpty returns true, if a string is empty or whitespace

func PageToString

func PageToString(path string, data interface{}) (string, error)

PageToString converts a page and struct to string

func Round

func Round(val float64, roundOn float64, places int) (newVal float64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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