diff --git a/cnf/cnf.go b/cnf/cnf.go index 15619b57..78745d64 100644 --- a/cnf/cnf.go +++ b/cnf/cnf.go @@ -23,10 +23,6 @@ var Settings *Options type Kind int -func (k Kind) MarshalText() (data []byte, err error) { - return []byte(k.String()), err -} - func (k Kind) String() string { switch k { default: @@ -42,6 +38,14 @@ func (k Kind) String() string { } } +func (k Kind) MarshalText() (data []byte, err error) { + return []byte(k.String()), err +} + +func (k Kind) UnmarshalText(text []byte) error { + return nil +} + const ( // Root access AuthKV Kind = iota