file

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2017 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package file reads configuration from a JSON file

e.g. CONFIG_URI=file://${PWD}/config/dev.json

Index

Constants

View Source
const Name = "file"

Name contains the adapter registered name

Variables

This section is empty.

Functions

func New

func New(uri *url.URL) (a.Store, error)

New returns a new file config store

Types

type Store

type Store struct {
	Path string
}

Store reads config from a JSON file

func (*Store) Load

func (s *Store) Load(config interface{}) error

Load config for the given environment

Jump to

Keyboard shortcuts

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