Skip to content

hanxinhisen/escape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

1.基于 golang builin包 实现类似 python中 urllib.parse.quote(uri, safe='-_.~/') safe部分 新增以下两个方法 PathEscapeWithOutCharacters QueryEscapeWithOutCharacters

使用方法

import "github.com/hanxinhisen/escape"


fun main(){
 // 例子1
 url := escape.PathEscapeWithOutCharacters("/aa/bb","-_.~/")  //后面参数中的字符将不进行转换
 // output : /aa/bb
 
 // 例子2
 url := escape.PathEscapeWithOutCharacters("/aa/bb","-_.~")  //后面参数中的字符将不进行转换
 // output : /aa/bb
 
 QueryEscapeWithOutCharacters用法相同
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages