hostsfile

package
v0.0.0-...-ec3898e Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package hostsfile provides an interface to interact with etc/hosts-file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(path string) (entries hosts.EntrySet, err error)

Read read the content of the given path and parse it to an hosts.EntrySet.

func Write

func Write(entries hosts.EntrySet, path string) error

Write writes the given hosts.EntrySet to the given path (create a new file if none exists).

Types

This section is empty.

Jump to

Keyboard shortcuts

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