func CurrentPlatform() Platform {
	return Platform{Os: runtime.GOOS, Arch: runtime.GOARCH}
}
CurrentPlatform returns the platform defined by GOOS and GOARCH.
package brokerpak
import (
	"fmt"
	"runtime"
	"github.com/GoogleCloudPlatform/gcp-service-broker/pkg/validation"
)
type Platform struct {
	Os   string `yaml:"os"`
	Arch string `yaml:"arch"`
}
var _ validation.Validatable = (*Platform)(nil)
func (p Platform) Validate() (errs *validation.FieldError) {
	return errs.Also(
		validation.ErrIfBlank(p.Os, "os"),
		validation.ErrIfBlank(p.Arch, "arch"),
	)
}
func (p Platform) String() string {
	return fmt.Sprintf("%s/%s", p.Os, p.Arch)
}
func (p Platform) Equals(other Platform) bool {
	return p.String() == other.String()
}
func (p Platform) MatchesCurrent() bool {
	return p.Equals(CurrentPlatform())
}