https://github.com/DSPBluePrints/FactoryBluePrints # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit. main 2 ...
package main import ( "github.com/Esbiya/requests" "log" "net/http" ) func main() { url := "https://www.baidu.com/" resp := requests.Get(url) if resp.StatusCode != http.StatusOK { log.Fatal("状态码异常") } log.Println(resp.Text) } get 请求 params := requests.Params{"1"...