mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-06 14:13:16 -06:00
15 lines
283 B
Go
15 lines
283 B
Go
package azurerm
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/satori/uuid"
|
|
)
|
|
|
|
func validateUUID(v interface{}, k string) (ws []string, errors []error) {
|
|
if _, err := uuid.FromString(v.(string)); err != nil {
|
|
errors = append(errors, fmt.Errorf("%q is an invalid UUUID: %s", k, err))
|
|
}
|
|
return
|
|
}
|