Registry / networking / hashicorp-go-sockaddr

hashicorp-go-sockaddr

JSON →
library1.0.7gogounverified

Package sockaddr is a Go implementation of the UNIX socket family data types and related helper functions.

go get github.com/hashicorp/go-sockaddr
INSTALL
IMPORT
SIG · HASHICORP-GO-SOCKA
H
hashicorp-go-sockaddr
networkinggov1.0.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sockaddr
github.com/hashicorp/go-sockaddr

Gets the private IP address of the machine.

package main import ( "fmt" "github.com/hashicorp/go-sockaddr" ) func main() { ip, _ := sockaddr.GetPrivateIP() fmt.Printf("Private IP: %s\n", ip) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.7latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
hashicorp-go-sockaddr — go get hashicorp-go-sockaddr · libregistry