package main
import(
"fmt"
"net/url"
)
func main() {
var urlStr string = "https://www.baidu.com"
escapeUrl := url.QueryEscape(urlStr)
fmt.Println("编码:",escapeUrl)
enEscapeUrl, _ := url.QueryUnescape(escapeUrl)
fmt.Println("解码:",enEscapeUrl)
}
当前位置:网站首页>golang中的URL 的编码和解码(转)
golang中的URL 的编码和解码(转)
2022-08-10 03:16:00 【Lucky小黄人】
边栏推荐
猜你喜欢
ES高亮显示语法
互联网公司高频面试题精讲:测试计划和测试方案有什么区别?
实测办公场景下,国产远程控制软件的表现力如何?(技术解析)
The same is a primary test, why does he pay 5,000 yuan more than me?
【IO复用】poll
从8k到13k,我全靠这本《接口自动化测试——从入门到精通》
Software life cycle (the work of each phase of software engineering)
How to quickly become a software test engineer?What skills do testers need for a monthly salary of 15k?
js原型和原型链以及原型继承
【Image Classification】2022-CycleMLP ICLR
随机推荐
Take you to an in-depth understanding of the version update of 3.4.2, what does it bring to users?
【Image Classification】2022-CycleMLP ICLR
vue项目 npm run build 打包项目防止浏览器缓存
使用curl指令发起websocket请求
WPF 实现更换主题色
The IDEA to automatically generate the serialVersionUID
动态网页开发基础
三极管开关电路参数设计与参数介绍
量化投资学习——在FPGA上运行高频交易策略
Example 048: Number ratio size
matlab simulink response spectrum calculation
Embedded Sharing Collection 32
带你深入理解3.4.2的版本更新,对用户带来了什么?
proxy代理服务
想要避免After Effects渲染失败的问题,5个小技巧必看
Little rookie Hebei Unicom induction training essay
【2022河南萌新联赛第(五)场:信息工程大学】【部分思路题解+代码解析】
单体架构应用和分布式架构应用的区别
The Evolutionary History of the "Double Gun" Trojan Horse Virus
mock模拟,skip,skipif,mark分类