Merge pull request #1622 from cfromknecht/hide-hodl-config-production

Hide hodl config production
This commit is contained in:
Olaoluwa Osuntokun
2018-07-25 20:33:16 -07:00
committed by GitHub
2 changed files with 13 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
// +build debug
package hodl
// Config is a struct enumerating the possible command line flags that are used

View File

@@ -0,0 +1,11 @@
// +build !debug
package hodl
// Config is an empty struct disabling command line hodl flags in production.
type Config struct{}
// Mask in production always returns MaskNone.
func (c *Config) Mask() Mask {
return MaskNone
}