Documentation ¶
Index ¶
- Constants
- type JSON
- func Array() *JSON
- func ArrayRef(child *JSON) *JSON
- func Bool(boolean c.Int) *JSON
- func False() *JSON
- func Null() *JSON
- func Number(num float64) *JSON
- func Object() *JSON
- func ObjectRef(child *JSON) *JSON
- func Raw(raw *c.Char) *JSON
- func String(str *c.Char) *JSON
- func StringRef(str *c.Char) *JSON
- func True() *JSON
Constants ¶
const (
LLGoPackage = "link: cjson"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSON ¶
type JSON struct {
Unused [0]byte
}
llgo:type C
func ArrayRef ¶
Create an array that only references it's elements so they will not be freed by Delete
func ObjectRef ¶
Create an object that only references it's elements so they will not be freed by Delete
func StringRef ¶
Create a string where valuestring references a string so it will not be freed by Delete
func (*JSON) AddItem ¶
Append item to the specified array.
llgo:link (*JSON).AddItem C.cJSON_AddItemToArray
func (*JSON) Delete ¶
func (o *JSON) Delete()
Delete a JSON entity and all subentities.
llgo:link (*JSON).Delete C.cJSON_Delete
func (*JSON) Print ¶
Render a JSON entity to text for transfer/storage.
llgo:link (*JSON).Print C.cJSON_Print
func (*JSON) PrintBuffered ¶
Render a JSON entity to text using a buffered strategy.
prebuffer is a guess at the final size. guessing well reduces reallocation.
fmt=0 gives unformatted, =1 gives formatted.
llgo:link (*JSON).PrintBuffered C.cJSON_PrintBuffered
func (*JSON) PrintUnformatted ¶
Render a JSON entity to text for transfer/storage without any formatting.
llgo:link (*JSON).PrintUnformatted C.cJSON_PrintUnformatted