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

config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 5 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       = 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