package conf

import "github.com/nats-io/gnatsd/conf"

Package conf supports a configuration file format used by gnatsd. It is a flexible format that combines the best of traditional configuration formats and newer styles such as JSON and YAML.

Index

Functions

func Parse

func Parse(data string) (map[string]interface{}, error)

Parse will return a map of keys to interface{}, although concrete types underly them. The values supported are string, bool, int64, float64, DateTime. Arrays and nested Maps are also supported.

func ParseFile

func ParseFile(fp string) (map[string]interface{}, error)

ParseFile is a helper to open file, etc. and parse the contents.

Source Files

lex.go parse.go

Version
v1.4.1 (latest)
Published
Feb 7, 2019
Platform
linux/amd64
Imports
10 packages
Last checked
10 hours ago

Tools for package owners.