MCPcopy Index your code
hub / github.com/pocketbase/pocketbase / Set

Method Set

plugins/jsvm/form_data.go:30–32  ·  view source on GitHub ↗

Set sets a new value for an existing key inside the current FormData, or adds the key/value if it does not already exist.

(key string, value any)

Source from the content-addressed store, hash-verified

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.
30func (data FormData) Set(key string, value any) {
31 data[key] = []any{value}
32}
33
34// Delete deletes a key and its value(s) from the current FormData.
35func (data FormData) Delete(key string) {

Callers 1

TestFormDataAppendAndSetFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestFormDataAppendAndSetFunction · 0.76