config

package
v0.1.0-dev-777099b Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	FrontPage  string `yaml:"front-page"`
	AutoBackup bool   `yaml:"auto-backup"`
	User       struct {
		Default struct {
			Role string `yaml:"role"`
		} `yaml:"default"`
	} `yaml:"user"`
	Plugins map[interface{}]interface{} `yaml:"plugins"`
}

func ParseConfig

func ParseConfig(path string) (*Config, error)

func (*Config) Get

func (conf *Config) Get(path string) (interface{}, error)

func (*Config) Save

func (conf *Config) Save(path string) error

func (*Config) Set

func (conf *Config) Set(path, value string) error

Jump to

Keyboard shortcuts

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