Adding upstream version 0.8.9.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
3b2c48b5e4
commit
c0c4addb85
285 changed files with 25880 additions and 0 deletions
28
pkg/format/urlpart_string.go
Normal file
28
pkg/format/urlpart_string.go
Normal file
|
@ -0,0 +1,28 @@
|
|||
// Code generated by "stringer -type=URLPart -trimprefix URL"; DO NOT EDIT.
|
||||
|
||||
package format
|
||||
|
||||
import "strconv"
|
||||
|
||||
func _() {
|
||||
// An "invalid array index" compiler error signifies that the constant values have changed.
|
||||
// Re-run the stringer command to generate them again.
|
||||
var x [1]struct{}
|
||||
_ = x[URLQuery-0]
|
||||
_ = x[URLUser-1]
|
||||
_ = x[URLPassword-2]
|
||||
_ = x[URLHost-3]
|
||||
_ = x[URLPort-4]
|
||||
_ = x[URLPath-5]
|
||||
}
|
||||
|
||||
const _URLPart_name = "QueryUserPasswordHostPortPath"
|
||||
|
||||
var _URLPart_index = [...]uint8{0, 5, 9, 17, 21, 25, 29}
|
||||
|
||||
func (i URLPart) String() string {
|
||||
if i < 0 || i >= URLPart(len(_URLPart_index)-1) {
|
||||
return "URLPart(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _URLPart_name[_URLPart_index[i]:_URLPart_index[i+1]]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue