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

21 lines
238 B
Markdown
Raw Permalink Normal View History

2024-01-17 19:52:54 +08:00
## 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)
}
```