Skip to content

Releases: Wing924/hostutils

v.2.0.3

05 Jun 02:10
578e13e
Compare
Choose a tag to compare
  • Bump up golang.org/x/exp to v0.0.0-20240604190554-fc45aab8b7f8

v2.0.2

18 Apr 05:35
2670f48
Compare
Choose a tag to compare

Fix a bug on sorting, which cause Pack don't work as expected

v2.0.1

18 Apr 04:04
067bca3
Compare
Choose a tag to compare
  • Fix slice access out of bound error

v2.0.0

14 Apr 13:07
603412b
Compare
Choose a tag to compare
  • Support Go 1.20.
  • Rewrite Pack algorithm

v1.1.0

24 Jan 01:07
867ef79
Compare
Choose a tag to compare
  • Support Go 1.17.
  • Only pack hostname but ignore numbers in domain.
  • Use github actions.

v1.0.1

25 Oct 00:58
Compare
Choose a tag to compare
  • Support go mod
  • Support go 1.11

v1.0.0

03 Oct 01:51
Compare
Choose a tag to compare
func Normalize(hosts []string) (packedHosts []string)
    Normalize Unpack and pack hosts

func NormalizeString(hosts string) (packedHosts []string)
    NormalizeString Unpack and pack hosts

func Pack(hosts []string) (packedHosts []string)
    Pack Pack full hosts list into short abbreviated hosts.

func PackString(hosts string) (packedHosts []string)
    PackString Pack space septated full hosts list into short abbreviated
    hosts.

func Unpack(packedHosts []string) (hosts []string)
    Unpack Unpack short abbreviated hosts into full hosts list.

func UnpackString(packedHosts string) (hosts []string)
    Unpack Unpack space septated short abbreviated hosts into full hosts
    list.