Standard library / mime/quotedprintable
quotedprintable.Reader
Streaming quoted-printable decoder. It decodes hex escapes and soft line breaks, but is not a charset converter. Expected stdout: 'café\n'.
Formal Syntax & Structure
go syntaxgo
type Reader struct {}Working Example
Example Snippetgo
package main
import ( "fmt" "io" "mime/quotedprintable" "strings")
func main() { r := quotedprintable.NewReader(strings.NewReader("caf=C3=A9")) fmt.Println(string(must(io.ReadAll(r))))}
func must[T any](v T, e error) T { if e != nil { panic(e) } return v}func check(e error) { if e != nil { panic(e) }}