jsonconfig

package
v0.0.0-...-b76ee76 Latest Latest
Warning

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

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

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 LoadOrFatal

func LoadOrFatal(configFile string, p Parser)

LoadOrFatal loads the JSON config file and exits if it can't be parsed.

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