github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/backup/struct18.gno (about) 1 package main 2 3 import ( 4 "fmt" 5 "net/http" 6 ) 7 8 type AuthenticatedRequest struct { 9 http.Request 10 Username string 11 } 12 13 func main() { 14 a := &AuthenticatedRequest{} 15 16 fmt.Printf("%v %T\n", a.Header, a.Header) 17 } 18 19 // Output: 20 // map[] http.Header