util

package
v0.0.0-...-90cde1e Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoerceToSlice

func CoerceToSlice(maybeSlice interface{}) ([]interface{}, error)

func IndirectBool

func IndirectBool(value bool) *bool

func InitFlags

func InitFlags(cmd *cobra.Command)

func NewHash

func NewHash(input string) string

func Timer

func Timer() func() string

Types

type Logger

type Logger = *zap.SugaredLogger

func InitLogger

func InitLogger(debug bool) Logger

type Options

type Options struct {
	Cwd    string
	DbUser string
	DbPass string
	DbHost string
	DbPort string
	DbName string
	Debug  bool
}

func GetOptions

func GetOptions() Options

func InitOptions

func InitOptions(cmd *cobra.Command) Options

Jump to

Keyboard shortcuts

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