github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/proxy/go/http_client.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"net/url"
     6  )
     7  
     8  func main() {
     9  	rsp, err := httpCall("/greeter", url.Values{"name": []string{"John"}})
    10  	if err != nil {
    11  		fmt.Println(err)
    12  		return
    13  	}
    14  	fmt.Println(rsp)
    15  }