Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveEntry ¶
RemoveEntry - Remove an entry from /etc/hosts or equivalent
Types ¶
type Hosts ¶
Hosts - Represents a hosts file.
func (*Hosts) IsWritable ¶
IsWritable - Return ```true``` if hosts file is writable.
func (*Hosts) Load ¶
Load the hosts file into ```l.Lines```. ```Load()``` is called by ```NewHosts()``` and ```Hosts.Flush()``` so you generally you won't need to call this yourself.
func (*Hosts) WriteElevated ¶
WriteElevated - Request a password then write the new hostsfile
type HostsLine ¶
HostsLine - Represents a single line in the hosts file.
func NewHostsLine ¶
NewHostsLine - Return a new instance of ```HostsLine```.
Click to show internal directories.
Click to hide internal directories.