Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyMatcher ¶
KeyMatcher is a function that determines whether a property name matches the current path value.
type Resolver ¶
type Resolver struct {
// KeyMatcher determines whether a structure key matches the current
// path value. If not set, regular string comparison is used.
KeyMatcher KeyMatcher
// AllowedPatterns is a slice of regexp patterns representing
// paths that are accessible by the Resolver.
// If not set, there is no restriction.
AllowedPatterns []string
}
Resolver exposes methods to resolve a string path representation from a host structure and retrieve the matching value or type.
func (Resolver) ResolveType ¶
ResolveType resolves pathRepr starting from host and returns the matching type.
Click to show internal directories.
Click to hide internal directories.