package
1.2.0-rc
Repository: https://github.com/go-spring/spring-core.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

BindValue binds properties to a value.
Load creates *Properties from file.
Map creates *Properties from map.
New creates empty *Properties.
ParseTag parses a value tag, returns its key, and default value, and splitter.
RegisterConverter registers its converter for non-primitive type such as time.Time, time.Duration, or other user-defined value type.
RegisterReader registers its Reader for some kind of file extension.
RegisterSplitter registers a Splitter and named it.
RegisterValidateFunc registers a validation function with a specific name.

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
ParsedTag a value tag includes at most three parts: required key, optional default value, and optional splitter, the syntax is ${key:=value}>>splitter.
Properties stores the data with map[string]string and the keys are case-sensitive, you can get one of them by its key, or bind some of them to a value.

# Interfaces

No description provided by the author
ReadOnlyProperties is the interface for read-only properties.

# Type aliases

Converter converts string value into user-defined value.
Reader parses []byte into nested map[string]interface{}.
Splitter splits string into []string by some characters.
ValidateFunc defines a type for validation functions, which accept a value of type T and return a boolean result.