Documentation
¶
Index ¶
- Constants
- func Free(object unsafe.Pointer)
- func GetErrorPtr() *int8
- func Malloc(size uintptr) unsafe.Pointer
- func Minify(json *int8)
- func Version() *int8
- type Bool
- type CJSON
- func CreateArray() *CJSON
- func CreateDoubleArray(numbers *float64, count c.Int) *CJSON
- func CreateFalse() *CJSON
- func CreateFloatArray(numbers *float32, count c.Int) *CJSON
- func CreateIntArray(numbers *c.Int, count c.Int) *CJSON
- func CreateNull() *CJSON
- func CreateNumber(num float64) *CJSON
- func CreateObject() *CJSON
- func CreateRaw(raw *int8) *CJSON
- func CreateString(string *int8) *CJSON
- func CreateStringArray(strings **int8, count c.Int) *CJSON
- func CreateStringReference(string *int8) *CJSON
- func CreateTrue() *CJSON
- func Parse(value *int8) *CJSON
- func ParseWithLength(value *int8, buffer_length uintptr) *CJSON
- func ParseWithLengthOpts(value *int8, buffer_length uintptr, return_parse_end **int8, ...) *CJSON
- func ParseWithOpts(value *int8, return_parse_end **int8, require_null_terminated Bool) *CJSON
- func (p *CJSON) AddArrayToObject(name *int8) *CJSON
- func (p *CJSON) AddBoolToObject(name *int8, boolean Bool) *CJSON
- func (p *CJSON) AddFalseToObject(name *int8) *CJSON
- func (p *CJSON) AddItemReferenceToArray(item *CJSON) Bool
- func (p *CJSON) AddItemReferenceToObject(string *int8, item *CJSON) Bool
- func (p *CJSON) AddItemToArray(item *CJSON) Bool
- func (p *CJSON) AddItemToObject(string *int8, item *CJSON) Bool
- func (p *CJSON) AddItemToObjectCS(string *int8, item *CJSON) Bool
- func (p *CJSON) AddNullToObject(name *int8) *CJSON
- func (p *CJSON) AddNumberToObject(name *int8, number float64) *CJSON
- func (p *CJSON) AddObjectToObject(name *int8) *CJSON
- func (p *CJSON) AddPatchToArray(operation *int8, path *int8, value *CJSON)
- func (p *CJSON) AddRawToObject(name *int8, raw *int8) *CJSON
- func (p *CJSON) AddStringToObject(name *int8, string *int8) *CJSON
- func (p *CJSON) AddTrueToObject(name *int8) *CJSON
- func (p *CJSON) ApplyPatches(patches *CJSON) c.Int
- func (p *CJSON) ApplyPatchesCaseSensitive(patches *CJSON) c.Int
- func (p *CJSON) Compare(b *CJSON, case_sensitive Bool) Bool
- func (p *CJSON) CreateArrayReference() *CJSON
- func (p *CJSON) CreateObjectReference() *CJSON
- func (p *CJSON) Delete()
- func (p *CJSON) DeleteItemFromArray(which c.Int)
- func (p *CJSON) DeleteItemFromObject(string *int8)
- func (p *CJSON) DeleteItemFromObjectCaseSensitive(string *int8)
- func (p *CJSON) DetachItemFromArray(which c.Int) *CJSON
- func (p *CJSON) DetachItemFromObject(string *int8) *CJSON
- func (p *CJSON) DetachItemFromObjectCaseSensitive(string *int8) *CJSON
- func (p *CJSON) DetachItemViaPointer(item *CJSON) *CJSON
- func (p *CJSON) Duplicate(recurse Bool) *CJSON
- func (p *CJSON) FindPointerFromObjectTo(target *CJSON) *int8
- func (p *CJSON) GenerateMergePatch(to *CJSON) *CJSON
- func (p *CJSON) GenerateMergePatchCaseSensitive(to *CJSON) *CJSON
- func (p *CJSON) GeneratePatches(to *CJSON) *CJSON
- func (p *CJSON) GeneratePatchesCaseSensitive(to *CJSON) *CJSON
- func (p *CJSON) GetArrayItem(index c.Int) *CJSON
- func (p *CJSON) GetArraySize() c.Int
- func (p *CJSON) GetNumberValue() float64
- func (p *CJSON) GetObjectItem(string *int8) *CJSON
- func (p *CJSON) GetObjectItemCaseSensitive(string *int8) *CJSON
- func (p *CJSON) GetPointer(pointer *int8) *CJSON
- func (p *CJSON) GetPointerCaseSensitive(pointer *int8) *CJSON
- func (p *CJSON) GetStringValue() *int8
- func (p *CJSON) HasObjectItem(string *int8) Bool
- func (p *CJSON) InsertItemInArray(which c.Int, newitem *CJSON) Bool
- func (p *CJSON) IsArray() Bool
- func (p *CJSON) IsBool() Bool
- func (p *CJSON) IsFalse() Bool
- func (p *CJSON) IsInvalid() Bool
- func (p *CJSON) IsNull() Bool
- func (p *CJSON) IsNumber() Bool
- func (p *CJSON) IsObject() Bool
- func (p *CJSON) IsRaw() Bool
- func (p *CJSON) IsString() Bool
- func (p *CJSON) IsTrue() Bool
- func (p *CJSON) MergePatch(patch *CJSON) *CJSON
- func (p *CJSON) MergePatchCaseSensitive(patch *CJSON) *CJSON
- func (p *CJSON) Print() *int8
- func (p *CJSON) PrintBuffered(prebuffer c.Int, fmt Bool) *int8
- func (p *CJSON) PrintPreallocated(buffer *int8, length c.Int, format Bool) Bool
- func (p *CJSON) PrintUnformatted() *int8
- func (p *CJSON) ReplaceItemInArray(which c.Int, newitem *CJSON) Bool
- func (p *CJSON) ReplaceItemInObject(string *int8, newitem *CJSON) Bool
- func (p *CJSON) ReplaceItemInObjectCaseSensitive(string *int8, newitem *CJSON) Bool
- func (p *CJSON) ReplaceItemViaPointer(item *CJSON, replacement *CJSON) Bool
- func (p *CJSON) SetNumberHelper(number float64) float64
- func (p *CJSON) SetValuestring(valuestring *int8) *int8
- func (p *CJSON) SortObject()
- func (p *CJSON) SortObjectCaseSensitive()
- type Hooks
Constants ¶
const LLGoPackage string = "link: $(pkg-config --libs libcjson libcjson_utils);"
Variables ¶
This section is empty.
Functions ¶
func GetErrorPtr ¶
func GetErrorPtr() *int8
Types ¶
type Bool ¶
func (Bool) CreateBool ¶
llgo:link Bool.CreateBool C.cJSON_CreateBool
type CJSON ¶
type CJSON struct { Next *CJSON Prev *CJSON Child *CJSON Type c.Int Valuestring *int8 Valueint c.Int Valuedouble float64 String *int8 }
func CreateArray ¶
func CreateArray() *CJSON
func CreateFalse ¶
func CreateFalse() *CJSON
func CreateNull ¶
func CreateNull() *CJSON
func CreateNumber ¶
func CreateObject ¶
func CreateObject() *CJSON
func CreateString ¶
func CreateStringReference ¶
func CreateTrue ¶
func CreateTrue() *CJSON
func ParseWithLength ¶
func ParseWithLengthOpts ¶
func ParseWithOpts ¶
func (*CJSON) AddArrayToObject ¶
llgo:link (*CJSON).AddArrayToObject C.cJSON_AddArrayToObject
func (*CJSON) AddBoolToObject ¶
llgo:link (*CJSON).AddBoolToObject C.cJSON_AddBoolToObject
func (*CJSON) AddFalseToObject ¶
llgo:link (*CJSON).AddFalseToObject C.cJSON_AddFalseToObject
func (*CJSON) AddItemReferenceToArray ¶
llgo:link (*CJSON).AddItemReferenceToArray C.cJSON_AddItemReferenceToArray
func (*CJSON) AddItemReferenceToObject ¶
llgo:link (*CJSON).AddItemReferenceToObject C.cJSON_AddItemReferenceToObject
func (*CJSON) AddItemToArray ¶
llgo:link (*CJSON).AddItemToArray C.cJSON_AddItemToArray
func (*CJSON) AddItemToObject ¶
llgo:link (*CJSON).AddItemToObject C.cJSON_AddItemToObject
func (*CJSON) AddItemToObjectCS ¶
llgo:link (*CJSON).AddItemToObjectCS C.cJSON_AddItemToObjectCS
func (*CJSON) AddNullToObject ¶
llgo:link (*CJSON).AddNullToObject C.cJSON_AddNullToObject
func (*CJSON) AddNumberToObject ¶
llgo:link (*CJSON).AddNumberToObject C.cJSON_AddNumberToObject
func (*CJSON) AddObjectToObject ¶
llgo:link (*CJSON).AddObjectToObject C.cJSON_AddObjectToObject
func (*CJSON) AddPatchToArray ¶
llgo:link (*CJSON).AddPatchToArray C.cJSONUtils_AddPatchToArray
func (*CJSON) AddRawToObject ¶
llgo:link (*CJSON).AddRawToObject C.cJSON_AddRawToObject
func (*CJSON) AddStringToObject ¶
llgo:link (*CJSON).AddStringToObject C.cJSON_AddStringToObject
func (*CJSON) AddTrueToObject ¶
llgo:link (*CJSON).AddTrueToObject C.cJSON_AddTrueToObject
func (*CJSON) ApplyPatches ¶
llgo:link (*CJSON).ApplyPatches C.cJSONUtils_ApplyPatches
func (*CJSON) ApplyPatchesCaseSensitive ¶
llgo:link (*CJSON).ApplyPatchesCaseSensitive C.cJSONUtils_ApplyPatchesCaseSensitive
func (*CJSON) CreateArrayReference ¶
llgo:link (*CJSON).CreateArrayReference C.cJSON_CreateArrayReference
func (*CJSON) CreateObjectReference ¶
llgo:link (*CJSON).CreateObjectReference C.cJSON_CreateObjectReference
func (*CJSON) DeleteItemFromArray ¶
llgo:link (*CJSON).DeleteItemFromArray C.cJSON_DeleteItemFromArray
func (*CJSON) DeleteItemFromObject ¶
llgo:link (*CJSON).DeleteItemFromObject C.cJSON_DeleteItemFromObject
func (*CJSON) DeleteItemFromObjectCaseSensitive ¶
llgo:link (*CJSON).DeleteItemFromObjectCaseSensitive C.cJSON_DeleteItemFromObjectCaseSensitive
func (*CJSON) DetachItemFromArray ¶
llgo:link (*CJSON).DetachItemFromArray C.cJSON_DetachItemFromArray
func (*CJSON) DetachItemFromObject ¶
llgo:link (*CJSON).DetachItemFromObject C.cJSON_DetachItemFromObject
func (*CJSON) DetachItemFromObjectCaseSensitive ¶
llgo:link (*CJSON).DetachItemFromObjectCaseSensitive C.cJSON_DetachItemFromObjectCaseSensitive
func (*CJSON) DetachItemViaPointer ¶
llgo:link (*CJSON).DetachItemViaPointer C.cJSON_DetachItemViaPointer
func (*CJSON) FindPointerFromObjectTo ¶
llgo:link (*CJSON).FindPointerFromObjectTo C.cJSONUtils_FindPointerFromObjectTo
func (*CJSON) GenerateMergePatch ¶
llgo:link (*CJSON).GenerateMergePatch C.cJSONUtils_GenerateMergePatch
func (*CJSON) GenerateMergePatchCaseSensitive ¶
llgo:link (*CJSON).GenerateMergePatchCaseSensitive C.cJSONUtils_GenerateMergePatchCaseSensitive
func (*CJSON) GeneratePatches ¶
llgo:link (*CJSON).GeneratePatches C.cJSONUtils_GeneratePatches
func (*CJSON) GeneratePatchesCaseSensitive ¶
llgo:link (*CJSON).GeneratePatchesCaseSensitive C.cJSONUtils_GeneratePatchesCaseSensitive
func (*CJSON) GetArrayItem ¶
llgo:link (*CJSON).GetArrayItem C.cJSON_GetArrayItem
func (*CJSON) GetArraySize ¶
llgo:link (*CJSON).GetArraySize C.cJSON_GetArraySize
func (*CJSON) GetNumberValue ¶
llgo:link (*CJSON).GetNumberValue C.cJSON_GetNumberValue
func (*CJSON) GetObjectItem ¶
llgo:link (*CJSON).GetObjectItem C.cJSON_GetObjectItem
func (*CJSON) GetObjectItemCaseSensitive ¶
llgo:link (*CJSON).GetObjectItemCaseSensitive C.cJSON_GetObjectItemCaseSensitive
func (*CJSON) GetPointer ¶
llgo:link (*CJSON).GetPointer C.cJSONUtils_GetPointer
func (*CJSON) GetPointerCaseSensitive ¶
llgo:link (*CJSON).GetPointerCaseSensitive C.cJSONUtils_GetPointerCaseSensitive
func (*CJSON) GetStringValue ¶
llgo:link (*CJSON).GetStringValue C.cJSON_GetStringValue
func (*CJSON) HasObjectItem ¶
llgo:link (*CJSON).HasObjectItem C.cJSON_HasObjectItem
func (*CJSON) InsertItemInArray ¶
llgo:link (*CJSON).InsertItemInArray C.cJSON_InsertItemInArray
func (*CJSON) MergePatch ¶
llgo:link (*CJSON).MergePatch C.cJSONUtils_MergePatch
func (*CJSON) MergePatchCaseSensitive ¶
llgo:link (*CJSON).MergePatchCaseSensitive C.cJSONUtils_MergePatchCaseSensitive
func (*CJSON) PrintBuffered ¶
llgo:link (*CJSON).PrintBuffered C.cJSON_PrintBuffered
func (*CJSON) PrintPreallocated ¶
llgo:link (*CJSON).PrintPreallocated C.cJSON_PrintPreallocated
func (*CJSON) PrintUnformatted ¶
llgo:link (*CJSON).PrintUnformatted C.cJSON_PrintUnformatted
func (*CJSON) ReplaceItemInArray ¶
llgo:link (*CJSON).ReplaceItemInArray C.cJSON_ReplaceItemInArray
func (*CJSON) ReplaceItemInObject ¶
llgo:link (*CJSON).ReplaceItemInObject C.cJSON_ReplaceItemInObject
func (*CJSON) ReplaceItemInObjectCaseSensitive ¶
llgo:link (*CJSON).ReplaceItemInObjectCaseSensitive C.cJSON_ReplaceItemInObjectCaseSensitive
func (*CJSON) ReplaceItemViaPointer ¶
llgo:link (*CJSON).ReplaceItemViaPointer C.cJSON_ReplaceItemViaPointer
func (*CJSON) SetNumberHelper ¶
llgo:link (*CJSON).SetNumberHelper C.cJSON_SetNumberHelper
func (*CJSON) SetValuestring ¶
llgo:link (*CJSON).SetValuestring C.cJSON_SetValuestring
func (*CJSON) SortObject ¶
func (p *CJSON) SortObject()
llgo:link (*CJSON).SortObject C.cJSONUtils_SortObject
func (*CJSON) SortObjectCaseSensitive ¶
func (p *CJSON) SortObjectCaseSensitive()
llgo:link (*CJSON).SortObjectCaseSensitive C.cJSONUtils_SortObjectCaseSensitive