From 966cffa7557e84e3128d9db746ed1289a46ca2a0 Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 18 Sep 2018 00:27:46 +0900 Subject: [PATCH] ing --- ping/ping.go | 8 ++++++++ 1 file changed, 8 insertions(+) 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 +}