config

package
v0.0.0-...-4380e07 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadJSONConfig

func LoadJSONConfig(configPath string, config interface{}) error

LoadJSONConfig reads a file located at configPath and unmarshals it to config structure

func LoadJSONConfigWithLimit

func LoadJSONConfigWithLimit(configPath string, szLimit int64, config interface{}) error

LoadJSONConfigWithLimit loads a config from a JSON file if it's not greater than szLimit bytes

Types

This section is empty.

Jump to

Keyboard shortcuts

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