Back to

command basic

v0.0.0 (4c31acb)
Latest Go to latest
Published: Mar 29, 2020 | License: BSD-3-Clause | Module:


An app that draws a green triangle on a red background.

Note: This demo is an early preview of Go 1.5. In order to build this program as an Android APK using the gomobile tool.

See to install gomobile.

Get the basic example and use gomobile to build or install it on your device.

$ go get -d
$ gomobile build # will build an APK

# plug your Android device to your computer or start an Android emulator.
# if you have adb installed on your machine, use gomobile install to
# build and deploy the APK to an Android target.
$ gomobile install

Switch to your device or emulator to start the Basic application from the launcher. You can also run the application on your desktop by running the command below. (Note: It currently doesn't work on Windows.)

$ go install && basic
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier