util

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanTemplate added in v0.13.1

func CleanTemplate(str string, data interface{}) (string, error)

CleanTemplate creates and runs template on passed string, with given params.

func ExtractMapKeys

func ExtractMapKeys(varMap interface{}) (data []string)

ExtractMapKeys returns top-level keys of map.

func LoadLocalConf added in v0.13.0

func LoadLocalConf(cnf *conf.Conf) *conf.Conf

LoadLocalConf returns local folder conf.

func RunCountdown added in v0.13.0

func RunCountdown(dur time.Duration, msg string)

RunCountdown runs countdown with a static message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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