Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

envconfig: sort strcut fields for reduce memory #51

Merged
merged 1 commit into from Apr 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions envconfig.go
Expand Up @@ -186,8 +186,8 @@ func PrefixLookuper(prefix string, l Lookuper) Lookuper {
}

type prefixLookuper struct {
prefix string
l Lookuper
prefix string
}

func (p *prefixLookuper) Lookup(key string) (string, bool) {
Expand Down Expand Up @@ -222,11 +222,11 @@ type MutatorFunc func(ctx context.Context, k, v string) (string, error)
type options struct {
Default string
Delimiter string
Prefix string
Separator string
NoInit bool
Overwrite bool
Prefix string
Required bool
Separator string
}

// Process processes the struct using the environment. See ProcessWith for a
Expand Down