https://qn.chenzqi.cn/chenshen/logo.png

App Store 礼品卡兑换

App Store 礼品卡兑现 iPhone 手机或 iPad 或其它可登录 Apple Store 终端 登录土区账号。点击个人头像 进入Redeem Gift Card or Code 输入礼品卡卡密兑现即可。

Go实现封装HttpRequest方法

package utils import ( "bytes" "encoding/json" "io/ioutil" "net/http" "time" ) func HttpRequest(method string, url string, data interface{}, result interface{}, header map[string]interface{}, queryParams map[string]interface{}) (response *http.Response, resMap interface{}, err error) { var client = http.Client{ Timeout: 3 * time.Second, } buf := bytes.NewBuffer(nil) encoder := json.NewEncoder(buf) if err = encoder.Encode(data); err != nil { return nil, nil, err } request, err := http.NewRequest(method, url, buf) if err != nil { return

GO参数传递

参数传递 Go在传递参数时是传值还是传引用,不同的选择会影响我们在函数中修改入参时是否会影响调用方看到的数据。 ::: tip 传值和传引用两者的区别 传值: