lib

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskYesNo

func AskYesNo(message string) bool

AskYesNo displays Y/N prompt

func FastMarshal

func FastMarshal(v interface{}) ([]byte, error)

FastMarshal serializes given interface to json

func RandomString

func RandomString(n int) (string, error)

RandomString returns random string of length n

func RenderTemplate

func RenderTemplate(content string, payload interface{}, w io.Writer) error

RenderTemplate renders passed template and writes it to writer

func SliceToAnonymousMap

func SliceToAnonymousMap(keys []string) map[string]struct{}

SliceToAnonymousMap converts string slice to map of anonymous structs

Types

This section is empty.

Jump to

Keyboard shortcuts

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