Skip to content

Commit

Permalink
go-ipfs-config: Merge pull request ipfs#46 from ipfs/fix/no-omitempty
Browse files Browse the repository at this point in the history
plugins: don't omit empty config values
  • Loading branch information
Stebalien authored Aug 29, 2019
2 parents a052688 + f0b5fe9 commit ad3cb6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/plugins.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package config

type Plugins struct {
Plugins map[string]Plugin `json:",omitempty"`
Plugins map[string]Plugin
// TODO: Loader Path? Leaving that out for now due to security concerns.
}

type Plugin struct {
Disabled bool `json:",omitempty"`
Config interface{} `json:",omitempty"`
Disabled bool
Config interface{}
}

0 comments on commit ad3cb6c

Please sign in to comment.