config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName string = "nao"
	Version string = "v1.2.0"
)
View Source
const (
	TypeImported string = "imported"
	TypeDefault  string = "default"
	TypeMerged   string = "merged"
	TypeMain     string = "main"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Editor      Editor      `yaml:"editor"`
	Preferences Preferences `yaml:"preferences"`
	Paths       Paths
}
var App AppConfig

type Editor

type Editor struct {
	Name        string   `yaml:"name"`
	SubCommands []string `yaml:"subCommands"`
}

type Paths

type Paths struct {
	ConfigFile string
	ConfigDir  string
	DataFile   string
	DataDir    string
	CacheDir   string
}

type Preferences

type Preferences struct {
	MergeSeparator  string `yaml:"mergeSeparator"`
	DefaultBehavior string `yaml:"defaultBehavior"` // Options: latest, main
}

Jump to

Keyboard shortcuts

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