Skip to content

Commit da53fc5

Browse files
committed
Mark old parse*ID and build*ID funcs as deprecated
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
1 parent e011ef3 commit da53fc5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

github/util.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ func validateValueFunc(values []string) schema.SchemaValidateDiagFunc {
142142
}
143143

144144
// return the pieces of id `left:right` as left, right.
145-
// @deprecated: use parseID2 instead.
145+
//
146+
// Deprecated: use parseID2 instead.
146147
func parseTwoPartID(id, left, right string) (string, string, error) {
147148
parts := strings.SplitN(id, ":", 2)
148149
if len(parts) != 2 {
@@ -153,12 +154,15 @@ func parseTwoPartID(id, left, right string) (string, string, error) {
153154
}
154155

155156
// format the strings into an id `a:b`.
157+
//
158+
// Deprecated: use buildID instead.
156159
func buildTwoPartID(a, b string) string {
157160
return fmt.Sprintf("%s:%s", a, b)
158161
}
159162

160163
// return the pieces of id `left:center:right` as left, center, right.
161-
// @deprecated: use parseID3 instead.
164+
//
165+
// Deprecated: Use parseID3 instead.
162166
func parseThreePartID(id, left, center, right string) (string, string, string, error) {
163167
parts := strings.SplitN(id, ":", 3)
164168
if len(parts) != 3 {
@@ -169,6 +173,8 @@ func parseThreePartID(id, left, center, right string) (string, string, string, e
169173
}
170174

171175
// format the strings into an id `a:b:c`.
176+
//
177+
// Deprecated: use buildID instead.
172178
func buildThreePartID(a, b, c string) string {
173179
return fmt.Sprintf("%s:%s:%s", a, b, c)
174180
}

0 commit comments

Comments
 (0)