goconfig

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

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

Go to latest
Published: Jul 31, 2017 License: MIT Imports: 11 Imported by: 0

README

goconfig

Configuration loader for golang project

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillStruct

func FillStruct(s interface{}, m map[interface{}]interface{}) error

func SetField

func SetField(obj interface{}, name string, value interface{}) error

Types

type Config

type Config struct {
	Mapping            map[string]interface{}
	ConfigFilePath     string
	ParametersFilePath string
}

func NewConfig

func NewConfig(configPath, parametersPath string) *Config

func (*Config) Load

func (c *Config) Load()

type ConfigurationParameters

type ConfigurationParameters struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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