Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 650 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 650 Bytes

Net Utils

  • 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

Install

go get github.com/gookit/goutil/netutil

Go docs

Usage

import "github.com/gookit/goutil/netutil"
// Get internal IPv4 address
netutil.InternalIPv4()

Testings

go test -v ./netutil/...

Test limit by regexp:

go test -v -run ^TestSetByKeys ./netutil/...