Exposing Go code to Android and Python
summary
Creates a Go library that actually builds an AAR via gomobile bind for Android and a Python extension by compiling with -buildmode=c-shared and using cgo wrappers, not just handwavy examples. Uses protobuf and a protoc plugin to generate type serializers and API stubs so serialization keeps interfaces to strings and C glue stays tiny. Provides a code generator that emits Go plus C wrapper files and produces both artifacts automatically.
AI-written summary · about
chapters (8)
- 0:00Intro
- 0:24From Go to Android
- 0:44From Go to Python
- 1:56Making Go generate the glue code
- 2:06Serialization of your inputs and outputs
- 2:53The Protobuf language and tools
- 3:26Making Protobuf generate your API
- 4:34To sum up








