conf

package
v2.3.5-0...-3934f3d Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

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.

func ParseFileWithChecks

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

ParseFileWithChecks is equivalent to ParseFile but runs in pedantic mode.

Types

This section is empty.

Jump to

Keyboard shortcuts

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