hosts

package
v0.0.0-...-99ef61b Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HostsFilePath = "/etc/hosts"
	UserHome      = os.Getenv("HOME")
	NettoolHome   = fmt.Sprintf("%s/.nettool", UserHome)
	HostLockDir   = fmt.Sprintf("%s/lock", NettoolHome)
	Eol           = "\n"
)

Functions

func NewHosts

func NewHosts(opts ...hostsOpt) hosts

func WithEscape

func WithEscape(begin, end string) hostsOpt

Types

This section is empty.

Jump to

Keyboard shortcuts

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