writetlds

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2025 License: MIT Imports: 18 Imported by: 0

README

Helper tool to persist TLD data to disk.

Will pull from the internet and write to the appropriate directory.

Usage:

$ go run tools/writetlds/main.go json
[INFO] Found base module path at ~/projects/tlds
[INFO] found table [columns [Domain Type TLD Manager] count 1591]
[INFO] found table [columns [Domain Names Root Zone Registry.INT Registry.ARPA RegistryIDN Repository] count 3]
[INFO] Wrote 210804 bytes to "~/projects/tlds/data/tlds.json"

$ go run tools/writetlds/main.go const
[INFO] Found base module path at ~/projects/tlds
[INFO] found table [columns [Domain Type TLD Manager] count 1591]
[INFO] found table [columns [Domain Names Root Zone Registry.INT Registry.ARPA RegistryIDN Repository] count 3]
[WARNING] Skipped 169 non-unicode domain name(s)
[INFO] Wrote 233763 bytes to "~/projects/tlds/consts.go"
[INFO] Successfully ran `go fmt` on output file "~/projects/tlds/tldconsts.go"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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