utils

package
v0.0.0-...-11a3135 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteConfig

func DeleteConfig(configName string) error

func GetEnvOrDefault

func GetEnvOrDefault(key string, def string) string

func InitializeConfig

func InitializeConfig(c Config) error

func Prompt

func Prompt(q string, def string, rd io.Reader) (string, error)

func ReadConfigFromFile

func ReadConfigFromFile(c Config, configName string) error

func WriteConfigToFile

func WriteConfigToFile(c Config, configName string) error

Types

type Config

type Config interface {
	Read() error
	Write() error
	Init(rd io.Reader) error
}

Jump to

Keyboard shortcuts

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