README ¶ detect-ip detect-ip is a tool to detect your public ip(v4/v6). Install For Cli go install github.com/chyroc/detect-ip/cli/detect-ip@latest For Go Package go get github.com/chyroc/detect-ip/detect_ip Usage For Cli detect-ip detect-ip -timeout 3000 # 3000 = 3s For Go Package package main import ( "fmt" "github.com/chyroc/detect-ip/detect_ip" ) func main() { ip := detect_ip.PublicIPV4() // PublicIPV6 // ip := detect_ip.PublicIPV4(detect_ip.WithTimeout(time.Second*3)) fmt.Println(ip) } Expand ▾ Collapse ▴ Directories ¶ Show internal Expand all Path Synopsis cli detect-ip speedtest testurl detect_ip internal Click to show internal directories. Click to hide internal directories.