MCPcopy Index your code
hub / github.com/coder/coder / string

Method string

coderd/promoauth/github.go:78–88  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

76}
77
78func (p *headerParser) string(key string) string {
79 if p.errors == nil {
80 p.errors = make(map[string]error)
81 }
82
83 v := p.header.Get(key)
84 if v == "" {
85 p.errors[key] = xerrors.Errorf("missing header %q", key)
86 }
87 return v
88}
89
90func (p *headerParser) int(key string) int {
91 v := p.string(key)

Callers 15

githubRateLimitsFunction · 0.95
intMethod · 0.95
openPortSchemaFunction · 0.80
nameValidatorFunction · 0.80
displayNameValidatorFunction · 0.80
formUtils.tsFile · 0.80
makeNameSchemaFunction · 0.80
makeDisplayNameSchemaFunction · 0.80

Calls 2

GetMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected