Skip to main content
Fuchsia
Discover Reference What's new Fuchsia platform
/
  • English
  • 中文 – 简体
  • 中文 – 繁體
Sign in
  • Reference
Overview API Tools Kernel Bazel SDK Diagnostics Hardware Platform specifications Testing
Fuchsia
  • Discover
  • Reference
    • Overview
    • API
    • Tools
    • Kernel
    • Bazel SDK
    • Diagnostics
    • Hardware
    • Platform specifications
    • Testing
  • What's new
  • Fuchsia platform
  • Overview
  • Editors
  • Editors for developing Fuchsia
  • Visual Studio Code
    • Extensions
    • Installing the Fuchsia extension
    • Using the Fuchsia extension
    • Additional VS Code extensions for Fuchsia
    • Additional VS Code configuration
    • Configuring remote workspaces
    • Configuring file reloading
  • YouCompleteMe integration
  • Vim tools for Fuchsia development
  • Kakoune for Fuchsia development
  • SDK
  • assembly_config
  • bindc
  • blobfs-compression
  • blobfs
  • bootserver
  • cmc
  • configc
  • fake-omaha-client
  • Ffx
  • fidl-format
  • fidlc
  • fidlcat
  • fidlgen_cpp
  • fidlgen_hlcpp
  • fidlgen_rust
  • fssh
  • funnel
  • gen-android-starnix-container
  • minfs
  • symbolizer
  • trace2json
  • zbi
  • zxdb
  • ffx command
  • Coding commands
    • cmc
    • configc
    • fidl-format
    • fidlc
    • fidlcat
    • fidlgen CPP
    • fidlgen HLCPP
    • fidlgen Rust
  • Debugging commands
    • symbolizer
    • zxdb
  • Device management commands
    • bootserver
    • funnel
    • minfs
    • zbi
  • Packaging commands
    • blobfs-compression
  • Tool troubleshooting
  • Troubleshooting tools reference
  • Hardware
  • audio-codec-ctl
  • audio-driver-ctl
  • gpioutil
  • i2cutil
  • lights-cli
  • fx developer tools
  • Overview
  • fx command
  • Build commands
    • Overview
    • args
    • bazel
    • bazel-tool
    • build
    • clean
    • clean-build
    • cleandead
    • cleandead-build
    • cmc
    • fargo
    • fetch-build-artifacts
    • gen
    • get-build-dir
    • get-src-dir
    • get-workspace-dir
    • gn
    • go
    • jq5
    • list-boards
    • list-products
    • ninja
    • ninjatrace2json
    • rbe
    • repro
    • run-in-build-dir
    • self-build
    • set
    • set-build-dir
    • set-main-pb
    • use
    • add-host-test
    • add-test
    • build-main-pb
    • check-deps
    • compdb
    • get-main-pb-path
    • list-packages
    • ls-buildid
    • validate-sdk
  • Code submission and review commands
    • Overview
    • doc-checker
    • mdlint
    • cl
    • gerrit-split-cl
    • gerrit-submit
  • Device discovery commands
    • Overview
    • get-device
    • get-device-addr
    • list-devices
    • netaddr
    • netls
    • set-device
    • unset-device
  • Device management commands
    • Overview
    • cp
    • flash
    • node-names
    • reboot
    • scp
    • serial
    • sftp
    • shell
    • ssh
    • wait
    • fastboot
    • system-status
  • Diagnostic commands
    • Overview
    • clippy
    • dis
    • rust-3p-outdated
  • Documentation commands
    • Overview
    • helpdoc
    • check-licenses
    • fidldoc
    • move-docs
    • rustdoc-link
    • rustdoc
  • Internal api commands
    • Overview
    • DEPRECATED! get-build-artifacts
    • get-flash-source
    • list-build-artifacts
  • Other commands
    • Overview
    • build-metrics
    • build-profile
    • create-pb-zip
    • exec
    • flash-remote
    • jq
    • list-usb-disks
    • local-publish-platform
    • merge-package-config
    • metrics
    • multi
    • netboot-remote
    • run-script
    • sdk-deps
    • serve-remote
    • setup-macos
    • setup-ufw
    • status
    • vendor
    • arm-esr
    • bisect-rustc
    • clippy
    • extract-zbi
    • ffx
    • fidltags
    • find-owner
    • flash-kola
    • gce
    • gen-cargo
    • gum
    • init-partition-tables
    • iquery
    • make-fuchsia-vol
    • qemu-cipd-ensure
    • refresh-bazel-compdb
    • refresh-bazel-compdb-bin.py
    • roll-compiler
    • run-boot-test.py
    • rust-3p-outdated
    • rustdoc
    • rustdoc-link
    • rustfmt
    • set-relay
    • setup-go
    • setup-usb-ethernet
    • size-check
    • smoke-test
    • sniff.py
    • wipe-partition-tables
    • zbi_json_to_d3js.py
    • zedmon
  • Run, inspect and debug commands
    • Overview
    • bootfs-size-report
    • host-tool
    • klog
    • log
    • qemu
    • run-netboot
    • DEPRECATED! syslog
    • bindc
    • binutils
    • blobstats
    • bt-snoop-from-snapshot
    • cpu-stats
    • crosvm
    • extract-pprof
    • fidlcat
    • DEPRECATED! fuzz
    • gdb
    • gnu
    • power-digest
    • power-viz
    • pprof
    • run-boot-test
    • run-in-build
    • run-recovery
    • run-zbi-test-remote
    • snapshot
    • sniff
    • triage
    • zxdb
  • Software delivery commands
    • Overview
    • add-update-source
    • is-package-server-running
    • mkzedboot
    • mkzedboot-remote
    • netboot
    • ota
    • serve
    • DEPRECATED! update
    • update-if-in-base
    • force-ota-from-devhost
    • gc
    • mkinstaller
    • mkinstaller-remote
    • publish
    • remove-update-source
    • show-package
    • unarchive-package
  • Source tree commands
    • Overview
    • cipd
    • create
    • format-code
    • jiri
    • rfc
    • sync-to
    • bazel2gn
    • check-goldens
    • clang-tidy
    • gen-cargo
    • grep
    • lint
    • list-owners
    • pending-commits
    • rustfmt
    • set-petal
    • shush
    • sync-from-stem
    • update-3p-owners
    • update-rust-3p-outdated
    • update-rustc-third-party
  • Test commands
    • Overview
    • DEPRECATED! run-host-tests
    • self-test
    • test
    • testgen
    • core-tests
    • coverage
    • exec-host-tests
    • run-e2e-tests
    • smoke-test
    • test-rustdoc
    • test-stats
    • test-stats.py
  • Contributor
  • Overview
  • fx command
  • Build commands
    • Overview
    • args
    • bazel
    • bazel-tool
    • build
    • clean
    • clean-build
    • cleandead
    • cleandead-build
    • cmc
    • fargo
    • fetch-build-artifacts
    • gen
    • get-build-dir
    • get-src-dir
    • get-workspace-dir
    • gn
    • go
    • jq5
    • list-boards
    • list-products
    • ninja
    • ninjatrace2json
    • rbe
    • repro
    • run-in-build-dir
    • self-build
    • set
    • set-build-dir
    • set-main-pb
    • use
    • add-host-test
    • add-test
    • build-main-pb
    • check-deps
    • compdb
    • get-main-pb-path
    • list-packages
    • ls-buildid
    • validate-sdk
  • Code submission and review commands
    • Overview
    • doc-checker
    • mdlint
    • cl
    • gerrit-split-cl
    • gerrit-submit
  • Device discovery commands
    • Overview
    • get-device
    • get-device-addr
    • list-devices
    • netaddr
    • netls
    • set-device
    • unset-device
  • Device management commands
    • Overview
    • cp
    • flash
    • node-names
    • reboot
    • scp
    • serial
    • sftp
    • shell
    • ssh
    • wait
    • fastboot
    • system-status
  • Diagnostic commands
    • Overview
    • clippy
    • dis
    • rust-3p-outdated
  • Documentation commands
    • Overview
    • helpdoc
    • check-licenses
    • fidldoc
    • move-docs
    • rustdoc-link
    • rustdoc
  • Internal api commands
    • Overview
    • DEPRECATED! get-build-artifacts
    • get-flash-source
    • list-build-artifacts
  • Other commands
    • Overview
    • build-metrics
    • build-profile
    • create-pb-zip
    • exec
    • flash-remote
    • jq
    • list-usb-disks
    • local-publish-platform
    • merge-package-config
    • metrics
    • multi
    • netboot-remote
    • run-script
    • sdk-deps
    • serve-remote
    • setup-macos
    • setup-ufw
    • status
    • vendor
    • arm-esr
    • bisect-rustc
    • clippy
    • extract-zbi
    • ffx
    • fidltags
    • find-owner
    • flash-kola
    • gce
    • gen-cargo
    • gum
    • init-partition-tables
    • iquery
    • make-fuchsia-vol
    • qemu-cipd-ensure
    • refresh-bazel-compdb
    • refresh-bazel-compdb-bin.py
    • roll-compiler
    • run-boot-test.py
    • rust-3p-outdated
    • rustdoc
    • rustdoc-link
    • rustfmt
    • set-relay
    • setup-go
    • setup-usb-ethernet
    • size-check
    • smoke-test
    • sniff.py
    • wipe-partition-tables
    • zbi_json_to_d3js.py
    • zedmon
  • Run, inspect and debug commands
    • Overview
    • bootfs-size-report
    • host-tool
    • klog
    • log
    • qemu
    • run-netboot
    • DEPRECATED! syslog
    • bindc
    • binutils
    • blobstats
    • bt-snoop-from-snapshot
    • cpu-stats
    • crosvm
    • extract-pprof
    • fidlcat
    • DEPRECATED! fuzz
    • gdb
    • gnu
    • power-digest
    • power-viz
    • pprof
    • run-boot-test
    • run-in-build
    • run-recovery
    • run-zbi-test-remote
    • snapshot
    • sniff
    • triage
    • zxdb
  • Software delivery commands
    • Overview
    • add-update-source
    • is-package-server-running
    • mkzedboot
    • mkzedboot-remote
    • netboot
    • ota
    • serve
    • DEPRECATED! update
    • update-if-in-base
    • force-ota-from-devhost
    • gc
    • mkinstaller
    • mkinstaller-remote
    • publish
    • remove-update-source
    • show-package
    • unarchive-package
  • Source tree commands
    • Overview
    • cipd
    • create
    • format-code
    • jiri
    • rfc
    • sync-to
    • bazel2gn
    • check-goldens
    • clang-tidy
    • gen-cargo
    • grep
    • lint
    • list-owners
    • pending-commits
    • rustfmt
    • set-petal
    • shush
    • sync-from-stem
    • update-3p-owners
    • update-rust-3p-outdated
    • update-rustc-third-party
  • Test commands
    • Overview
    • DEPRECATED! run-host-tests
    • self-test
    • test
    • testgen
    • core-tests
    • coverage
    • exec-host-tests
    • run-e2e-tests
    • smoke-test
    • test-rustdoc
    • test-stats
    • test-stats.py
  • Fuchsia
  • Reference
  • Tools

fx go

Manage Go source code

usage: fx go [SUBCOMMAND] [ARGS...]

Entrypoint to Fuchsia's Go toolchain.

Run `fx go help` to see all subcommands and flags.

go source code

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-03-04 UTC.

  • Terms
  • Privacy
  • Manage cookies
  • English
  • 中文 – 简体
  • 中文 – 繁體
OSZAR »