config

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 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 WriteConfigFile

func WriteConfigFile(b []byte)

Types

type Config

type Config struct {
	Path      string
	EditorCmd string
}

func FromConfigFile

func FromConfigFile() Config

func FromJson

func FromJson(j []byte) 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