Skip to content

Commit

Permalink
feat: add mapstructure name tag to config (#9)
Browse files Browse the repository at this point in the history
* feat: add mapstructure name tag to config

Signed-off-by: Emre Kosen <[email protected]>

---------

Signed-off-by: Emre Kosen <[email protected]>
Co-authored-by: Emre Kosen <[email protected]>
  • Loading branch information
emrekosen and Emre Kosen authored Dec 15, 2023
1 parent d43a64b commit 3aed07d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ type Couchbase struct {
}

type Config struct {
Couchbase Couchbase `yaml:"couchbase"`
Dcp config.Dcp `yaml:",inline"`
Couchbase Couchbase `yaml:"couchbase" mapstructure:"couchbase"`
Dcp config.Dcp `yaml:",inline" mapstructure:",squash"`
}

func (c *Config) ApplyDefaults() {
Expand Down

0 comments on commit 3aed07d

Please sign in to comment.