Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Location = "/etc/hosts"
OS-specific default hosts-file location.
Functions ¶
Types ¶
type Hostsfile ¶
type Hostsfile struct {
// contains filtered or unexported fields
}
Represents a hosts file. Records match a single line in the file.
func Decode ¶
Decodes the raw text of a hostsfile into a Hostsfile struct. If a line contains both an IP address and a comment, the comment will be lost.
Interface example from the image package.
Click to show internal directories.
Click to hide internal directories.