GoLang HTTP和REST客户端库: resty

参考:

Go 每日一库之 restyicon-default.png?t=M85Bhttps://segmentfault.com/a/1190000040247099

Installation

# Go Modules
require github.com/go-resty/resty/v2 v2.3.0

Usage

以下示例将帮助您尽可能舒适地使用resty库。

// Import resty into your code and refer it as `resty`.
import "github.com/go-resty/resty/v2"

Simple GET

// Create a Resty Client
client := resty.New()

resp, err := client.R().
		EnableTrace().
		Get("https

你可能感兴趣的:(goLang,golang,http)