config

package module
v0.0.0-...-eea41e3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2016 License: MIT Imports: 2 Imported by: 0

README

Build Status GoDoc Go Report Card

Config (WIP)

Documentation

Overview

Package config deals configurations file

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func New

func New(options *Options) *Config

func (*Config) Get

func (config *Config) Get(key string) interface{}

func (*Config) Read

func (config *Config) Read() (*gabs.Container, error)

func (*Config) Remove

func (config *Config) Remove(key string) error

func (*Config) Save

func (config *Config) Save() error

func (*Config) Set

func (config *Config) Set(key string, value interface{}) (*gabs.Container, error)

type Options

type Options struct {
	Path string
}

Jump to

Keyboard shortcuts

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