Registry / utility / txn2-txeh

txn2-txeh

JSON →
library1.8.1gogounverified

Package txeh provides /etc/hosts file management capabilities.

go get github.com/txn2/txeh
INSTALL
IMPORT
SIG · TXN2-TXEH
T
txn2-txeh
utilitygov1.8.1
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.

txeh
github.com/txn2/txeh

Create a new hosts file manager, add a host entry, and save changes.

package main import ( "fmt" "github.com/txn2/txeh" ) func main() { hosts, _ := txeh.NewHosts() hosts.AddHost("127.0.0.1", "example.local") if err := hosts.Save(); err != nil { fmt.Println(err) } }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
txn2-txeh — go get txn2-txeh · libregistry