1Core Go rules 2============= 3 4.. _"Make variable": https://docs.bazel.build/versions/master/be/make-variables.html 5.. _Bourne shell tokenization: https://docs.bazel.build/versions/master/be/common-definitions.html#sh-tokenization 6.. _Gazelle: https://github.com/bazelbuild/bazel-gazelle 7.. _GoArchive: providers.rst#GoArchive 8.. _GoLibrary: providers.rst#GoLibrary 9.. _GoPath: providers.rst#GoPath 10.. _GoSource: providers.rst#GoSource 11.. _build constraints: https://golang.org/pkg/go/build/#hdr-Build_Constraints 12.. _cc_library deps: https://docs.bazel.build/versions/master/be/c-cpp.html#cc_library.deps 13.. _cgo: http://golang.org/cmd/cgo/ 14.. _config_setting: https://docs.bazel.build/versions/master/be/general.html#config_setting 15.. _data dependencies: https://docs.bazel.build/versions/master/build-ref.html#data 16.. _goarch: modes.rst#goarch 17.. _goos: modes.rst#goos 18.. _mode attributes: modes.rst#mode-attributes 19.. _nogo: nogo.rst#nogo 20.. _pure: modes.rst#pure 21.. _race: modes.rst#race 22.. _msan: modes.rst#msan 23.. _select: https://docs.bazel.build/versions/master/be/functions.html#select 24.. _shard_count: https://docs.bazel.build/versions/master/be/common-definitions.html#test.shard_count 25.. _static: modes.rst#static 26.. _test_arg: https://docs.bazel.build/versions/master/user-manual.html#flag--test_arg 27.. _test_filter: https://docs.bazel.build/versions/master/user-manual.html#flag--test_filter 28.. _test_env: https://docs.bazel.build/versions/master/user-manual.html#flag--test_env 29.. _test_runner_fail_fast: https://docs.bazel.build/versions/master/command-line-reference.html#flag--test_runner_fail_fast 30.. _write a CROSSTOOL file: https://github.com/bazelbuild/bazel/wiki/Yet-Another-CROSSTOOL-Writing-Tutorial 31.. _bazel: https://pkg.go.dev/github.com/bazelbuild/rules_go/go/tools/bazel?tab=doc 32.. _introduction: /docs/go/core/rules.md#introduction 33.. _rules: /docs/go/core/rules.md#rules 34.. _examples: /docs/go/core/examples.md 35.. _defines-and-stamping: /docs/go/core/defines_and_stamping.md#defines-and-stamping 36.. _stamping-with-the-workspace-status-script: /docs/go/core/defines_and_stamping.md#stamping-with-the-workspace-status-script 37.. _embedding: /docs/go/core/embedding.md#embedding 38.. _cross-compilation: /docs/go/core/cross_compilation.md#cross-compilation 39.. _platform-specific-dependencies: /docs/go/core/platform-specific_dependencies.md#platform-specific-dependencies 40 41 42 43.. role:: param(kbd) 44.. role:: type(emphasis) 45.. role:: value(code) 46.. |mandatory| replace:: **mandatory value** 47 48These are the core go rules, required for basic operation. 49The intent is that these rules are sufficient to match the capabilities of the normal go tools. 50 51.. contents:: :depth: 2 52 53----- 54 55Introduction 56------------ 57 58This section has been moved to introduction_. 59 60 61Rules 62----- 63 64This section has been moved to rules_. 65 66The examples pertaining to each rule have been moved to examples_. 67 68 69Defines and stamping 70-------------------- 71 72This section has been moved to defines-and-stamping_. 73 74 75Stamping with the workspace status script 76~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 77 78This section has been moved to stamping-with-the-workspace-status-script_. 79 80 81Embedding 82--------- 83 84This section has been moved to embedding_. 85 86 87Cross compilation 88----------------- 89 90This section has been moved to cross-compilation_. 91 92Platform-specific dependencies 93~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 94 95This section has been moved to platform-specific-dependencies_. 96