Skip to content

feat(traceroute6): result formatting with ASN/geo annotations (#45)#53

Merged
smallnest merged 2 commits into
mainfrom
feat/issue-45-format
Jun 30, 2026
Merged

feat(traceroute6): result formatting with ASN/geo annotations (#45)#53
smallnest merged 2 commits into
mainfrom
feat/issue-45-format

Conversation

@smallnest

Copy link
Copy Markdown
Contributor

Summary

  • Add traceroute6/format.go: Result.String() (header traceroute6 to <host> (<v6>), N hops max, <proto> probes, per-hop host/IP + per-probe RTTs, * for timeouts, inline ECMP responders), Summary() compact per-hop stats (responder column widened to 39 cols for IPv6), and formatInfo rendering [AS<n> <name> <prefix> | <country> <region> <city>].
  • Output layout mirrors cmd/traceroute for parity.

Test plan

  • go test ./traceroute6/ — header text, RTT format, timeout stars, ECMP inline, enrichment annotation, summary loss.
  • go vet, go build ./..., gofmt -l clean.

Closes #45

Add Result.String() (traceroute6 header + per-hop lines with host/IP,
per-probe RTTs, "*" for timeouts, inline ECMP responders), Summary()
compact per-hop stats (responder column widened for IPv6), and
formatInfo rendering "[AS<n> <name> <prefix> | <country> <region>
<city>]" enrichment annotations.

Closes #45
@smallnest
smallnest merged commit 29b4cf0 into main Jun 30, 2026
1 of 2 checks passed
@smallnest
smallnest deleted the feat/issue-45-format branch June 30, 2026 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

结果格式化 (含 ASN/geo 注释)

1 participant