Documentation ¶
Overview ¶
Package config contains the configuration for the application. The configuration is loaded from a JSON document.
Index ¶
- Constants
- Variables
- func AppendRecentEntry(file string)
- func GetEditorCommand() string
- func GetPackageDir() string
- func GetRecentEntries() []string
- func GetServerPort() int
- func GetUpdateChannel() string
- func InitConfig()
- func Must(err error)
- func RemoveRecentEntry(d string)
- func Set(key string, value interface{})
- func WriteConfig() error
Constants ¶
View Source
const ( KeyServerPort = "server_port" KeyEditorCommand = "editor_command" KeyUpdateChannel = "update_channel" KeyRecent = "recent" KeyVersion = "version" KeyPackageDir = "package_dir" )
Variables ¶
View Source
var ConfigFile string
View Source
var DryRun bool = false
View Source
var Verbose bool
Functions ¶
func AppendRecentEntry ¶
func AppendRecentEntry(file string)
func GetEditorCommand ¶
func GetEditorCommand() string
func GetPackageDir ¶
func GetPackageDir() string
func GetRecentEntries ¶
func GetRecentEntries() []string
func GetServerPort ¶
func GetServerPort() int
func GetUpdateChannel ¶
func GetUpdateChannel() string
func RemoveRecentEntry ¶
func RemoveRecentEntry(d string)
func WriteConfig ¶
func WriteConfig() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.