Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const RelativeConfigDir = "%s/.config/GoNotes/"

Variables

View Source
var (
	ConfigFilename        = "config.json"
	ConfigDir             = fmt.Sprintf(RelativeConfigDir, tools.HomeDir)
	ConfigFile            = ConfigDir + ConfigFilename
	MainConf       Config = Read()
)

Functions

func CreateConfigFile

func CreateConfigFile()

func GetRawFile

func GetRawFile() *os.File

Types

type Config

type Config struct {
	Editor string `json:"Editor"`
}

func Read

func Read() Config

func (*Config) Update

func (c *Config) Update()

Jump to

Keyboard shortcuts

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