gomap

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 12 Imported by: 0

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 CheckUpdate

func CheckUpdate() error

CheckUpdate checks and updates the tool

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).

func PrintUpdateInfo

func PrintUpdateInfo()

PrintUpdateInfo prints information about updating

func PrintVersion

func PrintVersion()

PrintVersion prints the version information

func RemoveGomap

func RemoveGomap() error

RemoveGomap removes gomap from the system

func Run

func Run()

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.

Jump to

Keyboard shortcuts

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