util

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CredentialsFromStdin

func CredentialsFromStdin() (string, string, error)

func LogFLF

func LogFLF(entry *logrus.Entry) *logrus.Entry

Add "file, line, function" context to the logger

func StringToFile

func StringToFile(s string, filename string) error

func StructFromYamlStr

func StructFromYamlStr(s interface{}, yamlString string) error

func StructToYamlFile

func StructToYamlFile(s interface{}, filename string) error

func StructToYamlStr

func StructToYamlStr(s interface{}) (string, error)

func ValidateStruct

func ValidateStruct(s interface{}) error

func ValidationErrorToMap

func ValidationErrorToMap(err error) map[string]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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