如何在golang GET请求中转义空格字符

我想在 golang 中使用 net/http 包在 get 请求中发送一个文本字符串。但我无法找出如何做到这一点。就像我想点击以下网址:

"http://api.example.com/tutor?message=how can I do this"

请让我知道我该怎么做。


慕莱坞森
浏览 207回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Go