iprefix

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 3 Imported by: 0

README

iprefix is a golang package/tool to expand CIDR or IP range to string IP prefix patterns.

Usage and Demo

cli demo.

Enter cli dir in CLI:

go build -ldflags="all=-s -w" -trimpath
./cli -h

Homepage

https://github.com/lifenjoiner/iprefix

Documentation

Overview

Package iprefix expands CIDR or IP range to string IP prefix patterns.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessCIDR

func ProcessCIDR(s string) (ps []string, err error)

ProcessCIDR generates string IP prefix pattern from CIDR.

func ProcessRange

func ProcessRange(s, e string) (ps []string, err error)

ProcessRange generates string IP prefix pattern from IP range. `s` is start IP. `e` is end IP.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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