hostsfile

package
v4.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package hostsfile contains basic functions for the hosts file working.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record struct {
	IP              string
	Host            string
	AdditionalHosts []string
}

Record is a hosts file record.

func Parse

func Parse(in io.Reader) ([]Record, error)

Parse input and return slice of records. Result order are same as in source.

Jump to

Keyboard shortcuts

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