func (h *Hosts) IsWritable() bool {
	_, err := os.OpenFile(h.Path, os.O_WRONLY, 0660)
	if err != nil {
		return false
	}

	return true
}
func (h *Hosts) IsWritable() bool {
	_, err := os.OpenFile(h.Path, os.O_WRONLY, 0660)
	if err != nil {
		return false
	}

	return true
}
func ( h * Hosts ) IsWritable ( ) bool { _ , err := os . OpenFile ( h . Path , os . O_WRONLY , 0660 ) if err != nil { return false } return true }
// Return ```true``` if hosts file is writable.
Return true if hosts file is writable .