v0.1.2 minor refactor, helpers back to private, utility update
This commit is contained in:
1 parent
f6c05e27b3
commit
f7efbb881c
12 files changed
+178
-53
No files matched your search
+1
-1
@@ -20,7 +20,7 @@ func (c *Config) Register(path string, defaultValue any) error {
|
||||
// Validate path segments
|
||||
segments := strings.Split(path, ".")
|
||||
for _, segment := range segments {
|
||||
if !IsValidKeySegment(segment) {
|
||||
if !isValidKeySegment(segment) {
|
||||
return wrapError(ErrInvalidPath, fmt.Errorf("invalid path segment %q in path %q", segment, path))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user