This commit is contained in:
crusader 2018-09-18 00:27:46 +09:00
parent bb3e77205c
commit 966cffa755

View File

@ -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
}