golang

package
v0.0.0-...-e7c6ebb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindGo

func FindGo() (string, error)

FindGo returns the path to the `go` binary. When running under Bazel (`bazel run //path/to:target` or `bazel test //path/to:target`), it will return the path to the `go` binary downloaded by rules_go[1]. Otherwise, it will return the path to the host system's `go` binary. We aim to remove all uses of the system's `go` binary, in favor of the binary downloaded by Bazel.

[1] https://github.com/bazelbuild/rules_go

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL