草庐IT

http - 我正在努力将 id 从 mysql 附加到 URL

我正在尝试向url附加一个id(和其他信息),以便稍后访问它,但经过一番研究后我找不到正确的方法。我试过使用Get()方法、query()、Add(),但无法重定向URL。varemail_ployerstringfuncRegisterNewPloyer(whttp.ResponseWriter,r*http.Request){ifr.URL.Path!="/ployer/register"{http.Error(w,"404notfound.",http.StatusNotFound)return}db:=connect.ConnectDB()deferdb.Close()swit