Registry / utility / weppos-publicsuffix-go

weppos-publicsuffix-go

JSON →
library0.40.2gogounverified

Package publicsuffix-go provides a Go implementation of the Public Suffix List.

go get github.com/weppos/publicsuffix-go
INSTALL
IMPORT
SIG · WEPPOS-PUBLICSUFFI
W
weppos-publicsuffix-go
utilitygov0.40.2
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.

publicsuffix
github.com/weppos/publicsuffix-go

Extract the public suffix from a domain name.

package main import ( "fmt" "github.com/weppos/publicsuffix-go/publicsuffix" ) func main() { domain := "www.example.com" suffix, icann := publicsuffix.PublicSuffix(domain) fmt.Printf("Suffix: %s, ICANN: %t\n", suffix, icann) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.40.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources