jsonconfig

package
v0.0.0-...-ebdf1d9 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: MIT Imports: 3 Imported by: 19

Documentation

Overview

Package jsonconfig handles loading a JSON file into a struct.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(configFile string, p Parser) error

Load the JSON config file.

func LoadFromEnv

func LoadFromEnv(p Parser) error

LoadFromEnv returns the storage configuration information from the JAYCONFIG environment variable.

Types

type Parser

type Parser interface {
	ParseJSON([]byte) error
}

Parser must implement ParseJSON.

Jump to

Keyboard shortcuts

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