[go] Opt out all code that can't build with native go toolchain

This is done by adding the build tag:

  // +build !build_with_native_toolchain

Made fixes until this command (as a oneliner) succeeded:

  for i in $(ls */go.mod | xargs dirname); do
    echo $i;
    cd ./$i;
    go build -tags build_with_native_toolchain ./...;
    cd -;
  done

I had to move code around as code generated by stringer is never opted
out.

I also updated one go package documentation to be more standard.

Bug: 63735
Change-Id: I565b97411760a913de18ab64a7ab3f4a0dbc9c6b
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/451518
Reviewed-by: Oliver Newman <olivernewman@google.com>
Reviewed-by: Petr Hosek <phosek@google.com>
Testability-Review: Oliver Newman <olivernewman@google.com>
Commit-Queue: Marc-Antoine Ruel <maruel@google.com>
36 files changed
tree: d81284a3f9202627cb121d36dc2e62ef46a7f4e3
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. garnet/
  7. products/
  8. scripts/
  9. sdk/
  10. src/
  11. third_party/
  12. tools/
  13. zircon/
  14. .clang-format
  15. .clang-tidy
  16. .gitattributes
  17. .gitignore
  18. .gn
  19. .style.yapf
  20. AUTHORS
  21. BUILD.gn
  22. CODE_OF_CONDUCT.md
  23. CONTRIBUTING.md
  24. LICENSE
  25. OWNERS
  26. PATENTS
  27. README.md
  28. rustfmt.toml
README.md

Fuchsia

Pink + Purple == Fuchsia (a new operating system)

What is Fuchsia?

Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.

Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.