Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDomainToIP ¶
AddDomainToIP add a record of domain to system host file
func RemoveDomain ¶
RemoveDomain remove a record of domain form system host file
Types ¶
type Host ¶
type Host struct {
// contains filtered or unexported fields
}
Host has ip, name, line some impl and util functions are from https://golang.org/src/net/hosts.go
Click to show internal directories.
Click to hide internal directories.