vlaabra

Results 2 comments of vlaabra

``` type Config struct { Status enum.Status `yaml:"status" decoder:"Dec"` } func(*Config) Dec() {} ``` 🤔

``` import "encoding/hex" import "go.mongodb.org/mongo-driver/bson/primitive" type Config struct { Decimal primitive.Decimal128 `yaml:"decimal" decoder:"StringToDecimal"` // 12345 Hex []byte `yaml:"hex" decoder:"StringToHex"` // 1234FF } func (c *Config) StringToDecimal(s interface{}) (err error) {...