-
Notifications
You must be signed in to change notification settings - Fork 0
/
src.go
100 lines (80 loc) · 2.68 KB
/
src.go
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
package dirsyn
/*
standard serves as the basis for all ITU-T recommendations and RFCs
relevant to this package.
Instances of this type are not necessary to use directly.
*/
type standard struct {
Schema *SubschemaSubentry
Parameters map[string][]string
}
type (
X501 struct{ *standard } // ITU-T Rec. X.501
X520 struct{ *standard } // ITU-T Rec. X.520
X680 struct{ *standard } // ITU-T Rec. X.680
RFC2307 struct{ *standard } // RFC 2307
RFC3672 struct{ *standard } // RFC 3672
RFC4512 struct{ *standard } // RFC 4512
RFC4514 struct{ *standard } // RFC 4514
RFC4515 struct{ *standard } // RFC 4515
RFC4517 struct{ *standard } // RFC 4517
RFC4523 struct{ *standard } // RFC 4523
RFC4530 struct{ *standard } // RFC 4530
)
const (
itutURLPrefix = `https://www.itu.int/rec/T-REC-`
rfcURLPrefix = `https://datatracker.ietf.org/doc/html/`
)
/*
URL returns the string representation of the [ITU-T Rec. X.501] document URL.
[ITU-T Rec. X.501]: https://www.itu.int/rec/T-REC-X.501
*/
func (r X501) URL() string { return itutURLPrefix + `X.501` }
/*
URL returns the string representation of the [ITU-T Rec. X.680] document URL.
[ITU-T Rec. X.680]: https://www.itu.int/rec/T-REC-X.680
*/
func (r X680) URL() string { return itutURLPrefix + `X.680` }
/*
URL returns the string representation of the [ITU-T Rec. X.520] document URL.
[ITU-T Rec. X.520]: https://www.itu.int/rec/T-REC-X.520
*/
func (r X520) URL() string { return itutURLPrefix + `X.520` }
/*
URL returns the string representation of the RFC 2307 document URL.
*/
func (r RFC2307) URL() string { return rfcURLPrefix + `rfc2307` }
/*
Schema returns the underlying instance of *[SubschemaSubentry].
*/
func (r RFC2307) Schema() *SubschemaSubentry {
return r.standard.Schema
}
/*
URL returns the string representation of the RFC 3672 document URL.
*/
func (r RFC3672) URL() string { return rfcURLPrefix + `rfc3672` }
/*
URL returns the string representation of the RFC 4512 document URL.
*/
func (r RFC4512) URL() string { return rfcURLPrefix + `rfc4512` }
/*
URL returns the string representation of the RFC 4514 document URL.
*/
func (r RFC4514) URL() string { return rfcURLPrefix + `rfc4514` }
/*
URL returns the string representation of the RFC 4515 document URL.
*/
func (r RFC4515) URL() string { return rfcURLPrefix + `rfc4515` }
/*
URL returns the string representation of the RFC 4517 document URL.
*/
func (r RFC4517) URL() string { return rfcURLPrefix + `rfc4517` }
/*
URL returns the string representation of the RFC 4523 document URL.
*/
func (r RFC4523) URL() string { return rfcURLPrefix + `rfc4523` }
/*
URL returns the string representation of the RFC 4530 document URL.
*/
func (r RFC4530) URL() string { return rfcURLPrefix + `rfc4530` }