github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/addr0b_native.gno (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"github.com/gnolang/gno/_test/net/http"
     7  )
     8  
     9  type extendedRequest struct {
    10  	Request http.Request
    11  
    12  	Data string
    13  }
    14  
    15  func main() {
    16  	r := extendedRequest{}
    17  	req := &r.Request
    18  
    19  	fmt.Println(r)
    20  	fmt.Println(req)
    21  }
    22  
    23  // Output:
    24  // {{  0 0 map[] <nil> 0 [] false  map[] map[] map[]   <nil>} }
    25  // &{  0 0 map[] <nil> 0 [] false  map[] map[] map[]   <nil>}