Documentation ¶
Index ¶
- func CIDRToIP(cidr string) (IPs []net.IP)
- func FirstIP(network *net.IPNet) net.IP
- func GetInputType(input string) int
- func GetItemInArray(a []string, s string) int
- func IsCIDR(str string) bool
- func IsDomain(str string) bool
- func IsDomainPort(str string) bool
- func IsFileNameValid(name string) bool
- func IsHostPath(str string) bool
- func IsIPPort(str string) bool
- func IsIPRange(str string) bool
- func IsIPv4(str string) bool
- func IsIPv6(str string) bool
- func IsLocalIP(input string) bool
- func IsNetloc(str string) bool
- func IsNetlocPort(str string) bool
- func IsPort(str string) bool
- func IsProtocol(str string) bool
- func IsURL(str string) bool
- func LastIP(network *net.IPNet) net.IP
- func RangerToIP(ranger string) (IPs []net.IP)
- func RemoveDuplicateElement(input []string) []string
- func RemoveDuplicateElementInt(input []int) []int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInputType ¶
func GetItemInArray ¶
func IsDomainPort ¶
IsDomainPort checks if a string is Domain:Port
func IsFileNameValid ¶
func IsHostPath ¶
IsHostPath checks if a string is : netloc/path netloc:port/path
func IsNetlocPort ¶
IsNetlocPort checks if a string is [Domain or IP]:Port
func IsProtocol ¶
func RangerToIP ¶
func RemoveDuplicateElement ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.