Skip to content

go-basic/ipv4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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