Help us shape the future of Go! Take the 2026 Go Developer Survey

domainUtils

package
v0.1.45 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHttpHead

func CheckHttpHead(url string) (int, error)

inspects the http header returns the status code (200) status codes for reference https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status we will treat 200-299 as success in general

func GetCertificates

func GetCertificates(domain string, sslPort int) ([]*x509.Certificate, error)

get all the certificates associated with a domain, on the given port

func ResolveIP

func ResolveIP(domainName string) ([]net.IP, error)

domain names can have multiple IP address #TODO try getting ipv4 and ipv6 seperately return IP address associated with a domain

Types

This section is empty.

Jump to

Keyboard shortcuts

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