Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrHostnameInvalid indicates that the hostname is invalid. ErrHostnameInvalid = errors.New("hosts: invalid hostname") // ErrHostnameIsIP indicates that the hostname is an IP address. ErrHostnameIsIP = errors.New("hosts: hostname is IP address") )
These errors can be tested against using errors.Is. They are never returned directly.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File is an in-memory representation of a hosts-file.
Click to show internal directories.
Click to hide internal directories.