serial

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: MPL-2.0 Imports: 10 Imported by: 43

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReaderDecoderByFormat = make(map[string]readerDecoder)

Functions

func BuildConfig added in v1.3.0

func BuildConfig(files []string, formats []string) (*core.Config, error)

func DecodeJSONConfig

func DecodeJSONConfig(reader io.Reader) (*conf.Config, error)

DecodeJSONConfig reads from reader and decode the config into *conf.Config syntax error could be detected.

func DecodeTOMLConfig added in v1.1.5

func DecodeTOMLConfig(reader io.Reader) (*conf.Config, error)

DecodeTOMLConfig reads from reader and decode the config into *conf.Config using github.com/pelletier/go-toml and map to convert toml to json.

func DecodeYAMLConfig added in v1.1.5

func DecodeYAMLConfig(reader io.Reader) (*conf.Config, error)

DecodeYAMLConfig reads from reader and decode the config into *conf.Config using github.com/ghodss/yaml to convert yaml to json.

func LoadJSONConfig

func LoadJSONConfig(reader io.Reader) (*core.Config, error)

func LoadTOMLConfig added in v1.1.5

func LoadTOMLConfig(reader io.Reader) (*core.Config, error)

func LoadYAMLConfig added in v1.1.5

func LoadYAMLConfig(reader io.Reader) (*core.Config, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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