blob: 6e09ddfd5cf54d4dc0b916b31aae993613e6dac9 [file] [edit]
package rules_go
import (
"go.skia.org/infra/bazel/go/bazel"
)
var runfilePath = ""
// Find returns the path to the `go` binary provided by rules_go[1].
//
// Calling this function from any Go package will automatically establish a Bazel dependency on the
// corresponding external Bazel repository.
//
// [1] https://github.com/bazelbuild/rules_go
func Find() (string, error) {
return bazel.FindExecutable("go", runfilePath)
}