Golang 解析url参数为结构体数据 Jackey Golang 2021-12-17 2,402 次浏览 Golang, url 需要引入包:github.com/dora-go/query-parser 示例代码: type pData struct { A string `schema:"a"` B string `schema:"b"` } func main() { urlPath := "https://ijackey.com/?a=a&b=b" data, _...