URL

コード

package main

import (
    "fmt"
    "net/url"
)

func main() {
    u := url.URL{
        Scheme: "https",
        Host:   "google.com",
        Path:   "records",
        RawQuery: "app=1",
    }
    fmt.Println(u.String())
}

結果

https://google.com/records?app=1