Documentation ¶
Overview ¶
Package hostsfile has helpers for parsing a hosts file
Description: This file has the package hostfile.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func NewWithContents ¶
func (*File) AddHosts ¶
AddHosts adds a line into the hosts file for the given hosts to resolve to specified IP. Any existing hosts are replaced.
func (*File) RemoveAddress ¶
RemoveAddress removes a given address and all hosts associated with it from the hosts file
Click to show internal directories.
Click to hide internal directories.