- provide some network utils. eg:
InternalIPv4
- sub package:
httpctypes
- provide some commonly http content types.httpheader
- provide some commonly http header names.httpreq
- provide some http request utils
go get github.com/gookit/goutil/netutil
import "github.com/gookit/goutil/netutil"
// Get internal IPv4 address
netutil.InternalIPv4()
go test -v ./netutil/...
Test limit by regexp:
go test -v -run ^TestSetByKeys ./netutil/...