MCPcopy
hub / github.com/pocketbase/pocketbase / Append

Method Append

plugins/jsvm/form_data.go:24–26  ·  view source on GitHub ↗

Append appends a new value onto an existing key inside the current FormData, or adds the key if it does not already exist.

(key string, value any)

Source from the content-addressed store, hash-verified

22// Append appends a new value onto an existing key inside the current FormData,
23// or adds the key if it does not already exist.
24func (data FormData) Append(key string, value any) {
25 data[key] = append(data[key], value)
26}
27
28// Set sets a new value for an existing key inside the current FormData,
29// or adds the key/value if it does not already exist.

Callers 10

TestFormDataAppendAndSetFunction · 0.95
TestFormDataDeleteFunction · 0.95
TestFormDataGetFunction · 0.95
TestFormDataGetAllFunction · 0.95
TestFormDataHasFunction · 0.95
TestFormDataKeysFunction · 0.95
TestFormDataValuesFunction · 0.95
TestFormDataEntriesFunction · 0.95
TestFormDataToMultipartFunction · 0.95
RecordQueryMethod · 0.80

Calls

no outgoing calls

Tested by 9

TestFormDataAppendAndSetFunction · 0.76
TestFormDataDeleteFunction · 0.76
TestFormDataGetFunction · 0.76
TestFormDataGetAllFunction · 0.76
TestFormDataHasFunction · 0.76
TestFormDataKeysFunction · 0.76
TestFormDataValuesFunction · 0.76
TestFormDataEntriesFunction · 0.76
TestFormDataToMultipartFunction · 0.76