service/vendor/github.com/go-basic/ipv4/README.md

21 lines
238 B
Markdown

## 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)
}
```