hosts

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2017 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OutputHostLines

func OutputHostLines(outputFile string, configData *config.HostsConfig, oneLinePerIP bool) error

OutputHostLines writes the hostLines array to a file

func ReadHostsFile

func ReadHostsFile(fileName string) (map[string][]string, error)

ReadHostsFile reads a hosts file and returns the parsed hostnames and ips

Types

This section is empty.

Jump to

Keyboard shortcuts

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