github.com/traefik/yaegi@v0.15.1/_test/map13.go (about) 1 package main 2 3 import ( 4 "fmt" 5 "net/http" 6 ) 7 8 const acceptEncoding = "Accept-Encoding" 9 10 func main() { 11 opts := &http.PushOptions{ 12 Header: http.Header{ 13 acceptEncoding: []string{"gzip"}, 14 }, 15 } 16 fmt.Println(opts) 17 } 18 19 // Output: 20 // &{ map[Accept-Encoding:[gzip]]}