Registry / utility / bobesa-go-domain-util

bobesa-go-domain-util

JSON →
library0.0.0-20250410211237-17ab3b2f4a95gogounverified

A lightweight Go library for parsing and manipulating domain names and subdomains.

go get github.com/bobesa/go-domain-util
INSTALL
IMPORT
SIG · BOBESA-GO-DOMAIN-U
B
bobesa-go-domain-util
utilitygov0.0.0-20250410211237-17ab3b2f4a95
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

domainutil
github.com/bobesa/go-domain-util

Extract the main domain from a subdomain

package main import ( "fmt" "github.com/bobesa/go-domain-util/domainutil" ) func main() { fmt.Println(domainutil.Domain("sub.example.com")) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20250410211237-17ab3b2f4a95latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Meta
1
Resources
bobesa-go-domain-util — go get bobesa-go-domain-util · libregistry