Skip to content

Commit 7afb7db

Browse files
committed
Mark parseTwoPartID and parseThreePartID as deprecated
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
1 parent bae3fab commit 7afb7db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

github/util.go

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

144144
// return the pieces of id `left:right` as left, right.
145+
// @deprecated: use parseID2 instead.
145146
func parseTwoPartID(id, left, right string) (string, string, error) {
146147
parts := strings.SplitN(id, ":", 2)
147148
if len(parts) != 2 {
@@ -157,6 +158,7 @@ func buildTwoPartID(a, b string) string {
157158
}
158159

159160
// return the pieces of id `left:center:right` as left, center, right.
161+
// @deprecated: use parseID3 instead.
160162
func parseThreePartID(id, left, center, right string) (string, string, string, error) {
161163
parts := strings.SplitN(id, ":", 3)
162164
if len(parts) != 3 {

0 commit comments

Comments
 (0)