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

config

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2017 License: BSD-3-Clause Imports: 4 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ConfigFolder default name
	ConfigFolder = ".komanda"

	// ConfigFile default name
	ConfigFile = "config.toml"

	// ConfigLogFile default name
	ConfigLogFile = "komanda.log"

	// C global config
	// TODO: fix this later - bad
	C *Config
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Komanda *komanda
	Server  *server
	Color   *color
	Time    *time
}

Config for komanda

func Default

func Default() *Config

Default will return a default configuration

func Load

func Load(configPath string) (*Config, error)

Load a given configuration by path

func (*Config) Save

func (c *Config) Save() error

Save configuration file

Jump to

Keyboard shortcuts

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