github.com/abemedia/go-don@v0.2.2-0.20240329015135-be88e32bb73b/encoding/toml/toml.go (about) 1 // Package toml provides encoding and decoding of TOML data. 2 package toml 3 4 import ( 5 "github.com/abemedia/go-don/encoding" 6 "github.com/pelletier/go-toml" 7 ) 8 9 func init() { 10 mediaType := "application/toml" 11 12 encoding.RegisterDecoder(toml.Unmarshal, mediaType) 13 encoding.RegisterEncoder(toml.Marshal, mediaType) 14 }