cidr

package
v0.0.0-...-49a0fbc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

package cidr returns usable IP range for a given IP Address prefix.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CIDR

type CIDR struct{}

func New

func New() *CIDR

New returns a new instance of CIDR.

func (*CIDR) Dump

func (c *CIDR) Dump() ([]byte, error)

Dump produces a gob dump of the cached data.

func (*CIDR) Query

func (c *CIDR) Query(q string) ([]string, error)

Query parses a given query string and returns the answer. For the cidr package, the query is an IP Address Prefix (CIDR notation).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL