Simple hosts file management in Go (golang).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

6 lines
134 B

  1. package goodhosts
  2. const hostsFilePath = "${SystemRoot}/System32/drivers/etc/hosts"
  3. const eol = "\r\n"
  4. const commentChar string = "#"