Concepts

GDNative-Go concepts

GDNative-Go autogenerates a series of wrappers in the top of a base binding library that is able to communicate directly with the Godot NativeScript API and pass information betwen application boundaries. It can be used to extend Godot using native Golang thus providing a bridge between Golang ecosystem and Godot.

The library contains an script that will generate up to date wrappers for the common NativeScript types

The available NativeScript types are listed below

AaBb
Array
RVR
Color
Dictionary
NodePath
Plane
PoolArrays (PoolStringArray, PoolIntArray, etc…)
Quat
Rect2
Rid
String
Transform
Transform2D
Variant
Vector2
Vector3
VideoDecoder

take a look at the installation section next to discover how to install and initialize the library

The library comes with a command line tool that helps the users to reduce boilerplate in their code by offering class auto registration support.

More information about NativeScript

More information about Godot’s NativeScript can be found in the links below:

https://github.com/GodotNativeTools/godot_headers
https://docs.godotengine.org/en/stable/tutorials/plugins/gdnative/gdnative-c-example.html