Skip to content
/ go-utils Public

The Utility package for golang | golang 实用工具包

Notifications You must be signed in to change notification settings

jerbe/go-utils

Repository files navigation

GO-Utils The Utility package for golang

install

go get github.com/jerbe/go-utils

how to use

import (
	"fmt"
	
    utils "github.com/jerbe/go-utils"
)


func main() {
	// print the local host name
    fmt.Println(utils.GetHostname())   
	// >> jerbe-mac
	
	// print local IP
	fmt.Println(utils.GetLocalIPv4())
	// >> 192.168.31.100
	
	...
}

About

The Utility package for golang | golang 实用工具包

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages