-
A struct contains type Config struct {
BigInt big.Int
// lots of other members
}
func main() {
cfg := &Config{
BigInt: *big.NewInt(123),
}
str, _ := toml.Marshal(cfg)
fmt.Println(string(str))
} I see there is |
Beta Was this translation helpful? Give feedback.
Answered by
pelletier
Nov 24, 2021
Replies: 1 comment 5 replies
-
This looks like a bug: I would expect the marshaler to use |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
aj3423
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This looks like a bug: I would expect the marshaler to use
big.Int
'sTextMarshaler()
method. Which version of go-toml are you using?