MCPcopy
hub / github.com/gofiber/fiber / SetWithMap

Method SetWithMap

client/request.go:912–916  ·  view source on GitHub ↗

SetWithMap sets multiple form fields from a map, overriding previously set values.

(m map[string]string)

Source from the content-addressed store, hash-verified

910
911// SetWithMap sets multiple form fields from a map, overriding previously set values.
912func (f *FormData) SetWithMap(m map[string]string) {
913 for k, v := range m {
914 f.Set(k, v)
915 }
916}
917
918// SetWithStruct sets multiple form fields from a struct.
919// Nested structs are not currently supported.

Callers 1

SetFormDataWithMapMethod · 0.80

Calls 1

SetMethod · 0.95

Tested by

no test coverage detected