Skip to content

Commit 9df0c0c

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

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

github/util.go

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

171171
// return the pieces of id `left:right` as left, right.
172+
// @deprecated: use parseID2 instead.
172173
func parseTwoPartID(id, left, right string) (string, string, error) {
173174
parts := strings.SplitN(id, ":", 2)
174175
if len(parts) != 2 {
@@ -184,6 +185,7 @@ func buildTwoPartID(a, b string) string {
184185
}
185186

186187
// return the pieces of id `left:center:right` as left, center, right.
188+
// @deprecated: use parseID3 instead.
187189
func parseThreePartID(id, left, center, right string) (string, string, string, error) {
188190
parts := strings.SplitN(id, ":", 3)
189191
if len(parts) != 3 {

0 commit comments

Comments
 (0)