parseip

package module
v0.0.0-...-7c75227 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: Apache-2.0 Imports: 5 Imported by: 2

README

简介

通过给定格式的IP进行解析,获取IP的头和尾,快速方便

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseIP

func ParseIP(ip string) (startx uint32, endx uint32, err error)

支持常见的ip格式 192.168.113.159 192.168.113.159-254 192.168.113.159-192.168.113.254 192.168.113.0/24 191.168.113.159-192.168.114.254 192.167.113.159-192.168.114.254 192.168.113.159-192.168.114.254

func UInt32ToIP

func UInt32ToIP(intIP uint32) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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