Documentation
¶
Overview ¶
Package parser parses the hosts file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct { Path string // contains filtered or unexported fields }
Parser represents the Host file Parser.
func (*Parser) AddNewMapping ¶
AddNewMapping method adds a new host entry.
func (*Parser) RemoveDomainFromHostMapping ¶
RemoveDomainFromHostMapping removes a domain from an entry.
func (*Parser) RemoveHostMapping ¶
RemoveHostMapping removes an entry.
Click to show internal directories.
Click to hide internal directories.