Skip to content

Commit 32f8d2f

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 368febc commit 32f8d2f

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
@@ -140,7 +140,8 @@ func validateValueFunc(values []string) schema.SchemaValidateDiagFunc {
140140
}
141141

142142
// return the pieces of id `left:right` as left, right.
143-
// @deprecated: use parseID2 instead.
143+
//
144+
// Deprecated: use parseID2 instead.
144145
func parseTwoPartID(id, left, right string) (string, string, error) {
145146
parts := strings.SplitN(id, ":", 2)
146147
if len(parts) != 2 {
@@ -151,12 +152,15 @@ func parseTwoPartID(id, left, right string) (string, string, error) {
151152
}
152153

153154
// format the strings into an id `a:b`.
155+
//
156+
// Deprecated: use buildID instead.
154157
func buildTwoPartID(a, b string) string {
155158
return fmt.Sprintf("%s:%s", a, b)
156159
}
157160

158161
// return the pieces of id `left:center:right` as left, center, right.
159-
// @deprecated: use parseID3 instead.
162+
//
163+
// Deprecated: Use parseID3 instead.
160164
func parseThreePartID(id, left, center, right string) (string, string, string, error) {
161165
parts := strings.SplitN(id, ":", 3)
162166
if len(parts) != 3 {
@@ -167,6 +171,8 @@ func parseThreePartID(id, left, center, right string) (string, string, string, e
167171
}
168172

169173
// format the strings into an id `a:b:c`.
174+
//
175+
// Deprecated: use buildID instead.
170176
func buildThreePartID(a, b, c string) string {
171177
return fmt.Sprintf("%s:%s:%s", a, b, c)
172178
}

0 commit comments

Comments
 (0)