Files
llgo/_demo/go/mimeheader/mimeheader.go

14 lines
185 B
Go
Raw Normal View History

2024-08-13 15:28:30 +08:00
package main
import "net/textproto"
func main() {
h := make(textproto.MIMEHeader)
h.Set("host", "www.example.com")
println(h.Get("Host"))
}
/* Expected output:
www.example.com
*/