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