utils

package
v0.0.0-...-550907a Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CNIPDataRange [256]struct {
	// contains filtered or unexported fields
}

Functions

func HostIsIP

func HostIsIP(host string) (isIP, isPrivate bool)

func Ip2long

func Ip2long(ipstr string) (uint32, error)

func SearchRange

func SearchRange(start, end int, f func(int) bool) int

func ShouldDirect

func ShouldDirect(ip string) bool

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