dashnet

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package dashnet

网络处理工具集

Utils of network

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ip2binary

func Ip2binary(ip string) string

Ip2binary @Editor robotyang at 2023

Ip2binary ip转二进制

@Param ip ip为字符串,如"192.168.56.4"

@Return "11000000101010000011100000000100"

func MatchIp

func MatchIp(ip, iprange string) bool

MatchIp @Editor robotyang at 2023

MatchIp 判断 ip地址 和 其他ip/ip段 是否匹配

@Param ip ip为字符串,如"192.168.56.4"

@Param iprange 为ip段,如"192.168.56.64/26" [64~127, 网络64, 第一65, 最后126, 广播127]

@Param ip ip地址

@Reference https://tool.520101.com/wangluo/ipjisuan/

Types

This section is empty.

Jump to

Keyboard shortcuts

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