MCPcopy
hub / github.com/golang-jwt/jwt / Set

Method Set

cmd/jwt/main.go:340–347  ·  view source on GitHub ↗
(arg string)

Source from the content-addressed store, hash-verified

338}
339
340func (l ArgList) Set(arg string) error {
341 parts := strings.SplitN(arg, "=", 2)
342 if len(parts) != 2 {
343 return fmt.Errorf("invalid argument '%v'. Must use format 'key=value'. %v", arg, parts)
344 }
345 l[parts[0]] = parts[1]
346 return nil
347}

Callers 4

Example_useTokenViaHTTPFunction · 0.80
authHandlerFunction · 0.80
TestParseRequestFunction · 0.80
makeExampleRequestFunction · 0.80

Calls

no outgoing calls

Tested by 4

Example_useTokenViaHTTPFunction · 0.64
authHandlerFunction · 0.64
TestParseRequestFunction · 0.64
makeExampleRequestFunction · 0.64