config: github.com/joshbetz/config Index | Files | Directories

package config

import "github.com/joshbetz/config"

Index

Package Files

config.go

type Config Uses

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

Config represents a configuration file.

func New Uses

func New(filename string) *Config

New creates a new Config object.

func (*Config) Get Uses

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

Get retreives a Config option into a passed in pointer or returns an error.

func (*Config) Reload Uses

func (config *Config) Reload() error

Reload clears the config cache.

Directories

PathSynopsis
examples/hello-world

Package config imports 8 packages (graph) and is imported by 1 packages. Updated 2019-11-11. Refresh now. Tools for package owners.