github.com/abemedia/go-don@v0.2.2-0.20240329015135-be88e32bb73b/encoding/text/text.go (about)

     1  // Package text provides encoding and decoding of plain text data.
     2  package text
     3  
     4  import (
     5  	"github.com/abemedia/go-don/encoding"
     6  )
     7  
     8  func init() {
     9  	mediaType := "text/plain"
    10  
    11  	encoding.RegisterDecoder(decode, mediaType)
    12  	encoding.RegisterEncoder(encode, mediaType)
    13  }