https://github.com/go-basic/ipv4
local ipv4
https://github.com/go-basic/ipv4
go ip ipv4 localip
Last synced: 2 months ago
JSON representation
local ipv4
- Host: GitHub
- URL: https://github.com/go-basic/ipv4
- Owner: go-basic
- Created: 2020-05-12T07:45:08.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-12T07:59:18.000Z (almost 6 years ago)
- Last Synced: 2024-06-18T23:03:31.201Z (almost 2 years ago)
- Topics: go, ip, ipv4, localip
- Language: Go
- Size: 1000 Bytes
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Installation
```
go get github.com/go-basic/ipv4
```
## Example
```
package main
import (
"fmt"
"github.com/go-basic/ipv4"
)
func main() {
ip := ipv4.LocalIP()
fmt.Println(ip)
ips, _ := ipv4.LocalIPv4s()
fmt.Println(ips)
}
```