MCPcopy Create free account
hub / github.com/chanify/chanify / tryFormValues

Function tryFormValues

core/msgparam.go:360–365  ·  view source on GitHub ↗
(form *multipart.Form, name string, value []string)

Source from the content-addressed store, hash-verified

358}
359
360func tryFormValues(form *multipart.Form, name string, value []string) []string {
361 if len(value) <= 0 {
362 value = form.Value[name]
363 }
364 return value
365}
366
367func tryFormMap(form *multipart.Form, name string, items []*model.MsgTimeItem) []*model.MsgTimeItem {
368 if len(items) <= 0 {

Callers 1

ParseFormDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected