hosts

package
v0.0.0-...-fe9ce66 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 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