mobile/

directory
v0.0.0-...-2824937 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2020 License: MIT, BSD-3-Clause

README

Go support for Mobile devices

The Go mobile repository holds packages and build tools for using Go on mobile platforms.

Package documentation as a starting point:

Caution image

The Go Mobile project is experimental. Use this at your own risk. While we are working hard to improve it, neither Google nor the Go team can provide end-user support.

This is early work and installing the build system requires Go 1.5. Follow the instructions on golang.org/wiki/Mobile to install the gomobile command, build the basic and the bind example apps.

--

Contributions to Go are appreciated. See https://golang.org/doc/contribute.html.

Directories

Path Synopsis
app
Package app lets you write portable all-Go apps for Android and iOS.
Package app lets you write portable all-Go apps for Android and iOS.
debug
Package debug provides GL-based debugging tools for apps.
Package debug provides GL-based debugging tools for apps.
internal/apptest
Package apptest provides utilities for testing an app.
Package apptest provides utilities for testing an app.
internal/testapp
Small test app used by app/app_test.go.
Small test app used by app/app_test.go.
Package asset provides access to application-bundled assets.
Package asset provides access to application-bundled assets.
Package bind implements a code generator for gobind.
Package bind implements a code generator for gobind.
java
Package java implements the Java language bindings.
Package java implements the Java language bindings.
java/testpkg
Package testpkg contains bound functions for testing the cgo-JNI interface.
Package testpkg contains bound functions for testing the cgo-JNI interface.
java/testpkg/go_testpkg
Package go_testpkg is an autogenerated binder stub for package testpkg.
Package go_testpkg is an autogenerated binder stub for package testpkg.
objc
Package objc implements the Objective-C language bindings.
Package objc implements the Objective-C language bindings.
objc/testpkg/go_testpkg
Package go_testpkg is an autogenerated binder stub for package testpkg.
Package go_testpkg is an autogenerated binder stub for package testpkg.
seq
Package seq implements the machine-dependent seq serialization format.
Package seq implements the machine-dependent seq serialization format.
cmd
gobind
Gobind generates language bindings that make it possible to call Go functions from Java and Objective-C. Typically gobind is not used directly.
Gobind generates language bindings that make it possible to call Go functions from Java and Objective-C. Typically gobind is not used directly.
gomobile
Gomobile is a tool for building and running mobile apps written in Go.
Gomobile is a tool for building and running mobile apps written in Go.
Package event defines user input events.
Package event defines user input events.
key
Package key defines an event for physical keyboard keys.
Package key defines an event for physical keyboard keys.
lifecycle
Package lifecycle defines an event for an app's lifecycle.
Package lifecycle defines an event for an app's lifecycle.
mouse
Package mouse defines an event for mouse input.
Package mouse defines an event for mouse input.
paint
Package paint defines an event for the app being ready to paint.
Package paint defines an event for the app being ready to paint.
size
Package size defines an event for the dimensions, physical resolution and orientation of the app's window.
Package size defines an event for the dimensions, physical resolution and orientation of the app's window.
touch
Package touch defines an event for touch input.
Package touch defines an event for touch input.
example
audio
An app that makes a sound as the gopher hits the walls of the screen.
An app that makes a sound as the gopher hits the walls of the screen.
basic
An app that draws a green triangle on a red background.
An app that draws a green triangle on a red background.
bind/hello
Package hello is a trivial package for gomobile bind example.
Package hello is a trivial package for gomobile bind example.
libhello
This is the Go entry point for the libhello app.
This is the Go entry point for the libhello app.
libhello/hi
Package hi provides a function for saying hello.
Package hi provides a function for saying hello.
libhello/hi/go_hi
Package go_hi is an autogenerated binder stub for package hi.
Package go_hi is an autogenerated binder stub for package hi.
libhellojni
This example program compiles to a gojni.so shared library, that can be loaded from an android application.
This example program compiles to a gojni.so shared library, that can be loaded from an android application.
network
An app that paints green if golang.org is reachable when the app first starts, or red otherwise.
An app that paints green if golang.org is reachable when the app first starts, or red otherwise.
sprite
An app that demonstrates the sprite package.
An app that demonstrates the sprite package.
exp
app/debug
Package debug provides GL-based debugging tools for apps.
Package debug provides GL-based debugging tools for apps.
audio
Package audio provides a basic audio player.
Package audio provides a basic audio player.
audio/al
Package al provides OpenAL Soft bindings for Go.
Package al provides OpenAL Soft bindings for Go.
f32
Package f32 implements some linear algebra and GL helpers for float32s.
Package f32 implements some linear algebra and GL helpers for float32s.
font
Package font provides platform independent access to system fonts.
Package font provides platform independent access to system fonts.
gl/glutil
Package glutil implements OpenGL utility functions.
Package glutil implements OpenGL utility functions.
sensor
Package sensor provides sensor events from various movement sensors.
Package sensor provides sensor events from various movement sensors.
sprite
Package sprite provides a 2D scene graph for rendering and animation.
Package sprite provides a 2D scene graph for rendering and animation.
sprite/clock
Package clock provides a clock and time functions for a sprite engine.
Package clock provides a clock and time functions for a sprite engine.
sprite/glsprite
Package glsprite implements a sprite Engine using OpenGL ES 2.
Package glsprite implements a sprite Engine using OpenGL ES 2.
sprite/portable
Package portable implements a sprite Engine using the image package.
Package portable implements a sprite Engine using the image package.
Package f32 implements some linear algebra and GL helpers for float32s.
Package f32 implements some linear algebra and GL helpers for float32s.
Package geom defines a two-dimensional coordinate system.
Package geom defines a two-dimensional coordinate system.
gl
Package gl implements Go bindings for OpenGL ES 2.
Package gl implements Go bindings for OpenGL ES 2.
glutil
Package glutil implements OpenGL utility functions.
Package glutil implements OpenGL utility functions.
internal
binres
Package binres implements encoding and decoding of android binary resources.
Package binres implements encoding and decoding of android binary resources.
mobileinit
Package mobileinit contains common initialization logic for mobile platforms that is relevant to both all-Go apps and gobind-based apps.
Package mobileinit contains common initialization logic for mobile platforms that is relevant to both all-Go apps and gobind-based apps.
Package sprite provides a 2D scene graph for rendering and animation.
Package sprite provides a 2D scene graph for rendering and animation.
clock
Package clock provides a clock and time functions for a sprite engine.
Package clock provides a clock and time functions for a sprite engine.
glsprite
Package glsprite implements a sprite Engine using OpenGL ES 2.
Package glsprite implements a sprite Engine using OpenGL ES 2.
portable
Package portable implements a sprite Engine using the image package.
Package portable implements a sprite Engine using the image package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL