Documentation ¶
Overview ¶
Package gdnative is responsible for parsing and generating binding code for Go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteTemplate ¶
Types ¶
type API ¶
type API struct { Type string `json:"type"` Version struct { Major int `json:"major"` Minor int `json:"minor"` } `json:"version"` API []struct { Name string `json:"name"` ReturnType string `json:"return_type"` Arguments [][]string `json:"arguments"` } `json:"api"` }
API is a single API definition in `gdnative_api.json`
type View ¶
View is a structure that holds the api struct, so it can be used inside our temaplte.
func (View) HasArgs ¶
HasArgs is a function we use inside the template to test whether or not the function has arguments. This is so we can determine if we need to place a comma.
func (View) NotLastElement ¶
NotLastElement is a function we use inside the template to test whether or not the given element is the last in the slice or not. This is so we can correctly insert commas for argument lists.
Click to show internal directories.
Click to hide internal directories.