config

package
v0.0.0-...-f8f5229 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package config provides functionality to interact with and modify dots configuration stored as an INI file located at ~/.dots/sys/config

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All() map[string]map[string]string

All - Returns a mapping of all the config stored in ~/.dots/sys/config

func Delete

func Delete(path string)

Delete - Delete the config at the spcified config path.

func Fetch

func Fetch(path string, onUnset *func(), secure bool) *string

Fetch - Return a pointer to the config at the specified path. If the input is not set, run the optional onUnset input and prompt the user to specify the given config. If the secure parameter is true, mask the input data.

func Read

func Read(path string) string

Read - Return the config at the specified path.

func Write

func Write(path string, value string) bool

Write - Write the value to the specified config path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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