utils

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CastSliceInterfaceToSliceString

func CastSliceInterfaceToSliceString(a []interface{}) ([]string, error)

func CastToSlice

func CastToSlice(arg interface{}) (out []interface{}, ok bool)

func GetExecPath

func GetExecPath() string

func LogInit

func LogInit(help *Help) *log.Logger

func TakeArg

func TakeArg(arg interface{}, kind reflect.Kind) (val reflect.Value, ok bool)

Types

type Help

type Help struct {
	ConfigFile *string
	LogLevel   *string
	LogFile    *string
	OutputType *string
	Daemon     *bool
	HttpPort   *int
	MetaDbPort *int
	// contains filtered or unexported fields
}

func HelpInit

func HelpInit() *Help

Jump to

Keyboard shortcuts

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