config

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBool

func GetBool(key string) bool

func GetString

func GetString(key string) string

Get reads a config string from the acli config file.

func GetStringSlice

func GetStringSlice(key string) []string

GetStringSlice reads a config string slice from the acli config file.

func Initialize

func Initialize() error

Initialize initializes the viper instance. It will only run once.

func Set

func Set(key string, value any) error

Set writes a config value to the acli config file.

func UnmarshalConfig

func UnmarshalConfig(key any) error

Types

This section is empty.

Directories

Path Synopsis
kch

Jump to

Keyboard shortcuts

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