github.com/gogf/gf@v1.16.9/.example/net/ghttp/client/get.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"github.com/gogf/gf/net/ghttp"
     6  )
     7  
     8  func main() {
     9  	r, err := ghttp.Get("http://127.0.0.1:8199/11111/11122")
    10  	fmt.Println(err)
    11  	fmt.Println(r.Header)
    12  }