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

Function tryStringValue

core/msgparam.go:343–348  ·  view source on GitHub ↗
(value string, newValue string)

Source from the content-addressed store, hash-verified

341}
342
343func tryStringValue(value string, newValue string) string {
344 if len(value) <= 0 && len(newValue) > 0 {
345 value = newValue
346 }
347 return value
348}
349
350func tryFormValue(form *multipart.Form, name string, value string) string {
351 if len(value) <= 0 {

Callers 1

ParseJSONMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected