Golang net/textproto.CanonicalMIMEHeaderKey() function example

package net/textproto

Golang net/textproto.CanonicalMIMEHeaderKey() function usage example

 package main

 import (
  "fmt"
  "net/textproto"
 )

 func main() {
  str := textproto.CanonicalMIMEHeaderKey("accept-encoding")
  fmt.Println(str)
 }

Reference :

http://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey

Advertisement