Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
gaissmai committed Aug 31, 2024
1 parent c9922a2 commit e7c87ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Package `extnetip` is an extension to `net/netip` with
a few missing but important auxiliary functions for
converting IP-prefixes to IP-ranges and vice versa.

With these extensions to net/netip, third-party IP-range
With these extensions to `net/netip`, third-party IP-range
libraries become easily possible.

## API
Expand All @@ -22,7 +22,7 @@ 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)
func All(first, last netip.Addr) func(yield func(netip.Prefix) bool)
func All(first, last netip.Addr) iter.Seq[netip.Prefix]

// Deprecated: func Prefixes(first, last netip.Addr) []netip.Prefix
// Deprecated: func PrefixesAppend(dst []netip.Prefix, first, last netip.Addr) []netip.Prefix
Expand Down

0 comments on commit e7c87ed

Please sign in to comment.