config

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigDirMissing added in v0.1.3

func ConfigDirMissing() bool

func ConfigDirPath

func ConfigDirPath() string

func ConfigFileMissing

func ConfigFileMissing() bool

func ConfigFilePath

func ConfigFilePath() string

func MakeConfigDir

func MakeConfigDir()

func SaveExtraDir added in v0.2.0

func SaveExtraDir(path string)

func WriteConfigFile

func WriteConfigFile(b []byte)

Types

type Config

type Config struct {
	Path      string
	EditorCmd string
	Extras    []string
}

func FromJson

func FromJson(j []byte) Config

func ReadConfigFile added in v0.2.0

func ReadConfigFile() Config

func (Config) AsJson

func (c Config) AsJson() []byte

func (Config) Save

func (c Config) Save()

Jump to

Keyboard shortcuts

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