Documentation ¶ Index ¶ func Dir() (string, error) func DirFrom(baseDir string) string func EnsureDir() error func Path() (string, error) type Config func Load() (*Config, error) func LoadFrom(baseDir string) (*Config, error) func (c *Config) ResolvePort() (net.Listener, error) func (c *Config) Save() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Dir ¶ func Dir() (string, error) func DirFrom ¶ func DirFrom(baseDir string) string func EnsureDir ¶ func EnsureDir() error func Path ¶ func Path() (string, error) Types ¶ type Config ¶ type Config struct { Mode string `json:"mode"` StartOnLogin bool `json:"startOnLogin"` Port int `json:"port"` // contains filtered or unexported fields } func Load ¶ func Load() (*Config, error) func LoadFrom ¶ func LoadFrom(baseDir string) (*Config, error) func (*Config) ResolvePort ¶ func (c *Config) ResolvePort() (net.Listener, error) func (*Config) Save ¶ func (c *Config) Save() error Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.