URLクエリ文字列を生成 - golang

2020-06-20

params := url.Values{
    "keyword": {"some"},
}
reqUrl := "https://yourendpoint.example.com?" + params.Encode()

Reference

https://golang.org/pkg/net/url/#URL.Query