Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is injected at build time with -ldflags. Version = "2.3.0" // Commit is injected at build time with -ldflags. Commit = "dev" // Date is injected at build time with -ldflags. Date = "unknown" // RepoURL points to the project repository. RepoURL = "https://github.com/NexusFireMan/gomap" // ModulePath is the Go module import path used by go install. ModulePath = "github.com/NexusFireMan/gomap/v2" )
Functions ¶
func EffectiveBuildInfo ¶
func EffectiveBuildInfo() (version, commit, date string)
EffectiveBuildInfo returns user-facing version metadata, with runtime fallbacks when ldflags are not embedded (for example plain go install builds).
Types ¶
type CLIOptions ¶
type CLIOptions struct {
PortsFlag string
ExcludePorts string
ServiceFlag bool
GhostFlag bool
UpdateFlag bool
RemoveFlag bool
VersionFlag bool
NoDiscovery bool
JSONFlag bool
CSVFlag bool
FormatFlag string
OutPath string
TopPorts int
TopPortsAlias int
Rate int
MaxHosts int
TimeoutMS int
Workers int
Retries int
BackoffMS int
MaxTimeoutMS int
AdaptiveTimeout bool
DetailsFlag bool
RandomAgent bool
RandomIP bool
Host string
}
CLIOptions holds all parsed/validated CLI arguments.
func ParseCLIOptions ¶
func ParseCLIOptions(args []string) (CLIOptions, error)
ParseCLIOptions parses and validates all command-line arguments.
Click to show internal directories.
Click to hide internal directories.