MCPcopy
hub / github.com/grpc-ecosystem/grpc-gateway / SetGoTemplateArgs

Method SetGoTemplateArgs

internal/descriptor/registry.go:637–644  ·  view source on GitHub ↗
(kvs []string)

Source from the content-addressed store, hash-verified

635}
636
637func (r *Registry) SetGoTemplateArgs(kvs []string) {
638 r.goTemplateArgs = make(map[string]string)
639 for _, kv := range kvs {
640 if key, value, found := strings.Cut(kv, "="); found {
641 r.goTemplateArgs[key] = value
642 }
643 }
644}
645
646func (r *Registry) GetGoTemplateArgs() map[string]string {
647 return r.goTemplateArgs

Callers 4

mainFunction · 0.95
TestTagsWithGoTemplateFunction · 0.95

Calls

no outgoing calls

Tested by 3

TestTagsWithGoTemplateFunction · 0.76