github.com/traefik/yaegi@v0.15.1/_test/struct36.go (about)

     1  package main
     2  
     3  import (
     4  	"net/http"
     5  	"strings"
     6  )
     7  
     8  type S struct {
     9  	http.Client
    10  }
    11  
    12  func main() {
    13  	var s S
    14  	if _, err := s.Get("url"); err != nil {
    15  		println(strings.Contains(err.Error(), "unsupported protocol scheme"))
    16  	}
    17  	return
    18  }
    19  
    20  // Output:
    21  // true