Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gaissmai authored Jul 26, 2022
1 parent a8d8c1e commit f392c76
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ With these small extensions, third-party IP range libraries based on stdlib
## API

```go
import "github.com/gaissmai/extnetip"

func Range(p netip.Prefix) (first, last netip.Addr)

func Prefix(first, last netip.Addr) (prefix netip.Prefix, ok bool)
Expand All @@ -30,7 +32,3 @@ func AppendPrefixes(dst []netip.Prefix, first, last netip.Addr) []netip.Prefix

Hopefully some day these tiny helper functions are added to `netip` by the stdlib maintainers, currently (2022)
they refused [the proposal](https://github.com/golang/go/issues/53236).

## Importpath

`import "github.com/gaissmai/extnetip"`

0 comments on commit f392c76

Please sign in to comment.