net

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package net contains helpers for validating network address values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidIP

func IsValidIP(value string) bool

IsValidIP reports whether value is a syntactically valid IPv4 or IPv6 address.

func IsValidIPv4

func IsValidIPv4(value string) bool

IsValidIPv4 reports whether value is a syntactically valid IPv4 address.

func IsValidIPv6

func IsValidIPv6(value string) bool

IsValidIPv6 reports whether value is a syntactically valid IPv6 address.

func IsValidURL

func IsValidURL(value string) bool

IsValidURL reports whether value is a syntactically valid URL with a required scheme and host. The URL must have a scheme (http, https, etc.) and a host to be considered valid. This is stricter than net.ParseURL and rejects permissive edge cases like scheme-only or host-only URLs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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