utils

package
v0.0.0-...-9a67518 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pretty

func Pretty(nodes []xml.Node) string

func ResolveIp

func ResolveIp(ip string) string

Types

type Hosts

type Hosts map[string]string

A map from IP to FQDN

var HostMap Hosts

Ok, it's a horrible hack... but I don't know yet how to propagated this variable from Arguments to Printf!

func LoadHostsFile

func LoadHostsFile(filepath string) (Hosts, error)

Take a hosts file in the same format than /etc/hosts file. Currently, the only two first elements are used.

Jump to

Keyboard shortcuts

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