mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2025-08-12 06:26:39 +00:00
16 lines
219 B
Go
16 lines
219 B
Go
package printer
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/xgadget-lab/nexttrace/trace"
|
|
)
|
|
|
|
func RealtimePrinter(res *trace.Result, ttl int) {
|
|
fmt.Print(ttl + 1)
|
|
for i := range res.Hops[ttl] {
|
|
HopPrinter(res.Hops[ttl][i])
|
|
}
|
|
|
|
}
|