Tag: url

Golang 解析url参数为结构体数据

Jackey Golang 2,025 次浏览 ,
需要引入包: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, _...
Go