utils

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Block

func Block(theme string, format string, args ...interface{})

func Error

func Error(format string, args ...interface{})

func Info

func Info(format string, args ...interface{})

func MapArrayToYaml

func MapArrayToYaml(ml []map[string]string) string

func MapFlatten added in v0.3.1

func MapFlatten(m map[string]string) string

func MapToYaml

func MapToYaml(val map[string]string) string

func Print

func Print(format string, args ...interface{})

func Println

func Println(format string, args ...interface{})

func WaitForEnter added in v0.4.0

func WaitForEnter()

func Warn

func Warn(format string, args ...interface{})

Types

type Template

type Template struct {
	Structure string
	Data      interface{}
	// contains filtered or unexported fields
}

func NewTemplate

func NewTemplate(str string, data interface{}) *Template

func (*Template) Get

func (t *Template) Get() ([]byte, error)

func (*Template) Write

func (t *Template) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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