etchosts

package
v1.4.2-0...-bc73f0e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(path, IP, hostname, domainname string, extraContent []Record) error

func Update

func Update(path, IP, hostname string) error

Types

type Record

type Record struct {
	Hosts string
	IP    string
}

func (Record) WriteTo

func (r Record) WriteTo(w io.Writer) (int64, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL