Skip to content

Commit

Permalink
fixup! Use koanf to read ldap env and files
Browse files Browse the repository at this point in the history
  • Loading branch information
bersace committed May 6, 2024
1 parent 6864661 commit 9ab7136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ldap/rc.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func loadFiles(path ...string) (err error) {
// parser returns ldaprc as plain map for koanf.
type parser struct{}

func (_ parser) Unmarshal(data []byte) (map[string]interface{}, error) {
func (parser) Unmarshal(data []byte) (map[string]interface{}, error) {
out := make(map[string]interface{})
scanner := bufio.NewScanner(strings.NewReader(string(data)))
re := regexp.MustCompile(`\s+`)
Expand All @@ -106,6 +106,6 @@ func (_ parser) Unmarshal(data []byte) (map[string]interface{}, error) {
return maps.Unflatten(out, "_"), nil
}

func (_ parser) Marshal(map[string]interface{}) ([]byte, error) {
func (parser) Marshal(map[string]interface{}) ([]byte, error) {
panic("not implemented")
}

0 comments on commit 9ab7136

Please sign in to comment.