package
0.0.0-20240503155504-2f2621b85fa1
Repository: https://github.com/infrawatch/apputils.git
Documentation: pkg.go.dev
# Functions
BoolValidatorFactory creates validator for checking if the validator's given value is bool.
IntValidatorFactory creates validator for checking if the validator's given value is int.
MultiIntValidatorFactory creates validator for checking if the validator's given valueis list of ints separated by given separator.
NewINIConfig creates and initializes new INIConfig object according to given metadata.
NewJSONConfig creates and initializes new config object according to given metadata.
StringOptionsValidatorFactory creates validator for checking if the validator's given value is one of the factory's given string options.
# Structs
INIConfig holds complete configuration data and metadata for configuration saved as INI file.
JSONConfig holds complete configuration data and metadata for configuration saved as JSON file.
Option holds single value of single configuration option.
Parameter holds metadata and validators for the single configuration option.
Section holds configuration for appropriate section in config file.
WithConfigBase holds config metadata and logger.
# Interfaces
Config interface for methods to accept various types of config objects (INI/JSON/...).
# Type aliases
Validator checks the validity of the config option value.