MCPcopy Create free account
hub / github.com/coder/slog / write

Method write

map.go:190–200  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

188}
189
190func (p *xerrorPrinter) write(s string) {
191 s = strings.TrimSpace(s)
192 switch {
193 case p.e.Msg == "":
194 p.e.Msg = s
195 case p.e.Fun == "":
196 p.e.Fun = s
197 case p.e.Loc == "":
198 p.e.Loc = s
199 }
200}
201
202func (m Map) append(m2 Map) Map {
203 m3 := make(Map, 0, len(m)+len(m2))

Callers 2

PrintMethod · 0.95
PrintfMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected