hostutils

package module
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Normalize

func Normalize(hosts []string) (packedHosts []string)

Normalize Unpack and pack hosts

func NormalizeString

func NormalizeString(hosts string) (packedHosts []string)

NormalizeString Unpack and pack hosts

func Pack

func Pack(hosts []string) []string

Pack full hosts list into short abbreviated hosts.

func PackString

func PackString(hosts string) []string

PackString Pack space separated full hosts list into short abbreviated hosts.

func Unpack

func Unpack(packedHosts []string) (hosts []string)

Unpack short abbreviated hosts into full hosts list.

func UnpackString

func UnpackString(packedHosts string) (hosts []string)

UnpackString Unpack space separated short abbreviated hosts into full hosts list.

Types

This section is empty.

Jump to

Keyboard shortcuts

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