MCPcopy
hub / github.com/valyala/fasthttp / appendArg

Function appendArg

args.go:465–476  ·  view source on GitHub ↗
(args []argsKV, key, value string, noValue bool)

Source from the content-addressed store, hash-verified

463}
464
465func appendArg(args []argsKV, key, value string, noValue bool) []argsKV {
466 var kv *argsKV
467 args, kv = allocArg(args)
468 kv.key = append(kv.key[:0], key...)
469 if noValue {
470 kv.value = kv.value[:0]
471 } else {
472 kv.value = append(kv.value[:0], value...)
473 }
474 kv.noValue = noValue
475 return args
476}
477
478func allocArg(h []argsKV) ([]argsKV, *argsKV) {
479 n := len(h)

Callers 8

AddMethod · 0.85
AddBytesKMethod · 0.85
AddBytesVMethod · 0.85
AddBytesKVMethod · 0.85
AddNoValueMethod · 0.85
AddBytesKNoValueMethod · 0.85
setArgFunction · 0.85
appendArgBytesFunction · 0.85

Calls 1

allocArgFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…