helper

package
v1.44.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigFileDefaultLocations = []string{
	"./",
	"/goff/",
	"/etc/opt/goff/",
}

Functions

func GetFlagTypeFromVariations

func GetFlagTypeFromVariations(variations map[string]*interface{}) (model.FlagType, error)

func LoadConfigFile

func LoadConfigFile(
	inputFilePath string,
	configFormat string,
	defaultLocations []string,
) (map[string]dto.DTO, error)

Types

type Level

type Level = string
const (
	WarnLevel Level = "WARNING"
	InfoLevel Level = "INFO"
)

type Output

type Output struct {
	Lines []OutputLine
}

func (*Output) Add

func (o *Output) Add(line string, level Level) Output

func (*Output) PrintLines

func (o *Output) PrintLines(cmd *cobra.Command)

type OutputLine

type OutputLine struct {
	Text  string
	Level Level
}

Jump to

Keyboard shortcuts

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