File: urlpart_string.go

package info (click to toggle)
golang-github-nicholas-fedor-shoutrrr 0.8.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,332 kB
  • sloc: sh: 61; makefile: 5
file content (28 lines) | stat: -rw-r--r-- 731 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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]]
}