package buildcfg Import Path internal/buildcfg (on golang.org and go.dev) Dependency Relation imports 7 packages, and imported by one packageInvolved Source Files Package buildcfg provides access to the build configuration described by the current environment. It is for use by build tools such as cmd/go or cmd/compile and for setting up go/build's Default context. Note that it does NOT provide access to the build configuration used to build the currently-running binary. For that, use runtime.GOOS etc as well as internal/goexperiment. exp.go zbootstrap.goPackage-Level Functions (total 7)AllExperiments returns a list of all experiment settings. Disabled experiments appear in the list prefixed by "no".Check exits the program with a fatal error if Error is non-nil.EnabledExperiments returns a list of enabled experiments, as lower-cased experiment names.GOEXPERIMENT is a comma-separated list of enabled or disabled experiments that differ from the baseline experiment configuration. GOEXPERIMENT is exactly what a user would set on the command line to get the set of enabled experiments.ParseGOEXPERIMENT parses a (GOOS, GOARCH, GOEXPERIMENT) configuration tuple and returns the enabled and baseline experiment flag sets. TODO(mdempsky): Move to internal/goexperiment.UpdateExperiments updates the Experiment global based on a new GOARCH value. This is only required for cmd/go, which can change GOARCH after program startup due to use of "go env -w".Package-Level Variables (total 14)Error is one of the errors found (if any) in the build configuration.Experiment contains the toolchain experiments enabled for the current build. (This is not necessarily the set of experiments the compiler itself was built with.) experimentBaseline specifies the experiment flags that are enabled by default in the current toolchain. This is, in effect, the "control" configuration and any variation from this is an experiment.FramePointerEnabled enables the use of platform conventions for saving frame pointers. This used to be an experiment, but now it's always enabled on platforms that support it. Note: must agree with runtime.framepointer_enabled.Package-Level Constants (only one)const DefaultGOEXPERIMENT = ""
|The pages are generated with Golds v0.3.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.|