flag

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingHost = fmt.Errorf("missing host argument")

Functions

func PrintUsage

func PrintUsage()

Types

type CLIFlags

type CLIFlags struct {
	SrcPort             int
	DestPort            int
	MaxHops             int
	FirstHop            int
	TimeoutMs           int
	Retries             int
	PreferAddressFamily int
	Host                string
}

CLIFlags holds parsed command-line flags and the host.

func ParseFlags

func ParseFlags() (*CLIFlags, error)

parseFlags parses CLI flags and returns CLIFlags + possible error.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL