LEFT | RIGHT |
(Both sides are equal) |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // Package url parses URLs and implements query escaping. | 5 // Package url parses URLs and implements query escaping. |
6 // See RFC 3986. | 6 // See RFC 3986. |
7 package url | 7 package url |
8 | 8 |
9 import ( | 9 import ( |
10 "bytes" | 10 "bytes" |
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 } else { | 692 } else { |
693 if strings.HasPrefix(result, "//") { | 693 if strings.HasPrefix(result, "//") { |
694 result = u.Scheme + ":" + result | 694 result = u.Scheme + ":" + result |
695 } | 695 } |
696 } | 696 } |
697 if u.RawQuery != "" { | 697 if u.RawQuery != "" { |
698 result += "?" + u.RawQuery | 698 result += "?" + u.RawQuery |
699 } | 699 } |
700 return result | 700 return result |
701 } | 701 } |
LEFT | RIGHT |