helpers

package
v0.0.0-...-01a4b1d Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(slice []string, val string) (int, bool)

Find takes a slice and looks for an element in it. If found it will return it's key, otherwise it will return -1 and a bool of false.

func PrintCSV

func PrintCSV(obj interface{}) error

func PrintJSON

func PrintJSON(obj interface{}) error

func PrintYAML

func PrintYAML(obj interface{}) error

func SetLogLevel

func SetLogLevel(loglevelString string)

SetLogLevel sets the log level for logrus by string; possible values are debug, error, fatal, panic, info, trace

Types

This section is empty.

Jump to

Keyboard shortcuts

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