github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/struct37.gno (about) 1 package main 2 3 import ( 4 "strings" 5 6 "github.com/gnolang/gno/_test/net/http" 7 ) 8 9 type MyHttpClient struct { 10 *http.Client 11 } 12 13 func main() { 14 c := new(MyHttpClient) 15 c.Client = new(http.Client) 16 _, err := c.Get("url") 17 println(strings.Contains(err.Error(), "unsupported protocol scheme")) 18 } 19 20 // Output: 21 // true