goodhosts
Go package for interfacing with an OS hosts file
Vagrant plugin that use goodhosts to manipulate hosts files
Simple hosts file management in a Go cli