Documentation ¶ Overview ¶ Package lanip finds the host's LAN IPv4 address. It is a leaf package (stdlib only) so dns, podman, tui and ui can share it without a cycle. Index ¶ func Primary() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Primary ¶ func Primary() string Primary returns the local IPv4 address the kernel would use to reach a public destination, falling back to the first up, non-loopback interface address. Empty when neither yields one. The dial sends no packets. Types ¶ This section is empty. Source Files ¶ View all Source files lanip.go Click to show internal directories. Click to hide internal directories.