util

package
v0.0.0-...-d379aa0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTemplate

func LoadTemplate(s string) *template.Template

LoadTemplate loads a template from a filename string

func TruncateOutput

func TruncateOutput(s string) string

TruncateOutput removes the first and last lines from a string. Strings are split on '\r\n' line endings

func Underscorer

func Underscorer(s string) string

Underscorer converts a string to an underscore string replacing spaces and dashes with underscores

Types

This section is empty.

Jump to

Keyboard shortcuts

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