Categorygithub.com/smallnest/traceroute
modulepackage
0.0.0-20210429085154-f710a112d6cf
Repository: https://github.com/smallnest/traceroute.git
Documentation: pkg.go.dev

# README

Traceroute in Go

A traceroute library written in Go.

Build Status Go Report Card GoDoc

Forked from aeden/traceroute.

CLI App

go install github.com/smallnest/traceroute/cmd/tracert
sudo tracert example.com

Library

See the code in cmd/gotraceroute.go for an example of how to use the library from within your application.

The traceroute.Traceroute() function accepts a domain name and an options struct and returns a TracerouteResult struct that holds an array of TracerouteHop structs.

Resources

Useful resources:

Notes

# Packages

No description provided by the author

# Functions

Trace uses the given dest (hostname) and option to execute a traceroute from your machine to the remote host by using golang.org/x/net/icmp.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

DefaultOption provides a default opt.

# Structs

Hop type.
TracrouteOption type.
TraceResult type.