Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct { FormatName string `json:"format"` Specs []Spec `json:"specs"` Enums []Enum `json:"enums"` }
Context contains all processed specs
func (*Context) ExportC ¶
func (ctx *Context) ExportC()
ExportC exports data to the C language format
func (*Context) ExportGo ¶
func (ctx *Context) ExportGo()
ExportGo exports data to the Go language format
func (*Context) ExportJSON ¶
func (ctx *Context) ExportJSON()
ExportJSON marshals our current data into JSON format
type Field ¶
type Field struct { Name string `json:"name"` Type string `json:"type"` IsArray bool `json:"is_array"` IsPointer bool `json:"is_ptr"` ArrayLen uint `json:"len"` InnerArray *Field `json:"inner"` Tags []Tag `json:"tags"` DocString string `json:"_doc"` }
Field describes the data inside of spec
Click to show internal directories.
Click to hide internal directories.