Codebase list golang-github-opennota-urlesc / upstream/0.0_git20160726.0.5bd2802
New upstream version 0.0~git20160726.0.5bd2802 Anthony Fok 7 years ago
3 changed file(s) with 8 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
0 urlesc [![Build Status](https://travis-ci.org/opennota/urlesc.png?branch=master)](https://travis-ci.org/opennota/urlesc) [![GoDoc](http://godoc.org/github.com/opennota/urlesc?status.svg)](http://godoc.org/github.com/opennota/urlesc)
0 urlesc [![Build Status](https://travis-ci.org/PuerkitoBio/urlesc.png?branch=master)](https://travis-ci.org/PuerkitoBio/urlesc) [![GoDoc](http://godoc.org/github.com/PuerkitoBio/urlesc?status.svg)](http://godoc.org/github.com/PuerkitoBio/urlesc)
11 ======
22
33 Package urlesc implements query escaping as per RFC 3986.
77
88 ## Install
99
10 go get github.com/opennota/urlesc
10 go get github.com/PuerkitoBio/urlesc
1111
1212 ## License
1313
14 MIT
14 Go license (BSD-3-Clause)
1515
5959
6060 case encodeFragment: // ยง4.1
6161 // The RFC text is silent but the grammar allows
62 // everything, so escape nothing.
63 return false
62 // everything, so escape nothing but #
63 return c == '#'
6464 }
6565 }
6666
337337 },
338338 "",
339339 },
340 // unescaped : / ? # [ ] @ ! $ & ' ( ) * + , ; = in fragment
341 {
342 "http://example.com/#:/?#[]@!$&'()*+,;=",
340 // unescaped : / ? [ ] @ ! $ & ' ( ) * + , ; = in fragment
341 {
342 "http://example.com/#:/?%23[]@!$&'()*+,;=",
343343 &url.URL{
344344 Scheme: "http",
345345 Host: "example.com",