utils

package
v0.0.0-...-e78e600 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cors

func Cors(handler http.HandlerFunc) http.HandlerFunc

func CreateTemplate

func CreateTemplate(name string) (*template.Template, error)

func HttpImplement

func HttpImplement(log context.Log) http.HandlerFunc

Displays a warning on http and log side to implement this call.

func Rest

func Rest(handler http.HandlerFunc) http.HandlerFunc

func SanitizePath

func SanitizePath(path string) string

func Unexpected

func Unexpected(t *testing.T, err error)

Fails a test if an unexpected error occur which has nothing to do with the test case.

Types

This section is empty.

Jump to

Keyboard shortcuts

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