MCPcopy
hub / github.com/caddyserver/caddy / String

Method String

caddyconfig/configadapters.go:38–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38func (w Warning) String() string {
39 var directive string
40 if w.Directive != "" {
41 directive = fmt.Sprintf(" (%s)", w.Directive)
42 }
43 return fmt.Sprintf("%s:%d%s: %s", w.File, w.Line, directive, w.Message)
44}
45
46// JSON encodes val as JSON, returning it as a json.RawMessage. Any
47// marshaling errors (which are highly unlikely with correct code)

Callers 11

initServerMethod · 0.45
AssertRedirectMethod · 0.45
addrMethod · 0.45
addrMethod · 0.45
PresentMethod · 0.45
setupListenerWrapperTestFunction · 0.45
LoadConfigMethod · 0.45

Calls

no outgoing calls

Tested by 8

addrMethod · 0.36
addrMethod · 0.36
PresentMethod · 0.36
setupListenerWrapperTestFunction · 0.36