diff --git a/ping/ping.go b/ping/ping.go index 51b054a..0516845 100644 --- a/ping/ping.go +++ b/ping/ping.go @@ -15,3 +15,11 @@ type PingSummary struct { type PingResult struct { ounp.PingResult } + +func NewPingResult() *PingResult { + r := &PingResult{} + r.Responses = make(map[int]ounp.Response, 0) + r.Summary = &PingSummary{} + + return r +}