github.com/chriswiegman/goodhosts/v3 (go): A small Go module and CLI application  for editing your hosts file with single entries or blocks of entries.
Keywords: golang|hosts|hostsfile