MCPcopy Create free account
hub / github.com/caddyserver/caddy / MarshalLogArray

Method MarshalLogArray

admin.go:1420–1428  ·  view source on GitHub ↗
(enc zapcore.ArrayEncoder)

Source from the content-addressed store, hash-verified

1418type loggableURLArray []*url.URL
1419
1420func (ua loggableURLArray) MarshalLogArray(enc zapcore.ArrayEncoder) error {
1421 if ua == nil {
1422 return nil
1423 }
1424 for _, u := range ua {
1425 enc.AppendString(u.String())
1426 }
1427 return nil
1428}
1429
1430var (
1431 // DefaultAdminListen is the address for the local admin

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected