Skip to content
This repository was archived by the owner on Apr 1, 2023. It is now read-only.

Releases: xgfone/go-tools

v9.0.0: Refactor with Generics

12 Dec 10:32
Compare
Choose a tag to compare
  • Changed:
    • Remove the original packages and use the generics to refactor all the packages.

v8.0.0

15 Jun 01:37
Compare
Choose a tag to compare
  • Changed:
    • Rename the sub-package sort2 to sort and remove the functions Interfaces.
    • Rename the sub-package strings2 to strings, remove the string builder Builder and the splie functions like SplitXX.
    • Rename the sub-package json2 to json and remove the functions ToBytesErr, ToBytes, ToStringErr, ToString, EncodeNowTime, EncodeTime, Write.
    • Rename the sub-package net2 to net, use NormalizeMac to replace others like NormalizeMacXX, remove the function InSlice, IsIP, GetIPs, GetIP, GetMac, GetMac, GetInterfaceByIP, GetNICNameAndIP, GetInterfaceAndIP, GetInterfaceAndIP, GetAllNetIPs.
  • Removed:
    • Remove the sub-package file, io2, signal2, tag.
    • Remove the type validation from the sub-package types.
    • Remove some functions from sub-package function, such as the function or method call and the value setter.
    • Remove the sub-package lifecycle and merge it into the independent module github.com/xgfone/go-atexit.
    • Remove the sub-package pools and move it to the independent module github.com/xgfone/go-pools.
    • Remove the sub-package atexit and move it to the independent module github.com/xgfone/go-atexit.
    • Remove the sub-package execution and move it to the independent module github.com/xgfone/go-exec.
    • Remove the sub-package namespace and move it to the independent module github.com/xgfone/go-namespace.

v7.7.0

11 May 15:08
Compare
Choose a tag to compare
  • Added:
    • Add the sub-package atexit instead of lifecycle.
    • Add the function Kill to send a signal to a certain process.
    • Add the function BinarySearch to search the specific element from a slice.

v7.6.0

04 Mar 13:27
Compare
Choose a tag to compare
  • Deprecated:
    • Deprecate the functions GetIP, GetInterfaceByIP and GetInterfaceAndIP.
  • Added:
    • Add the new functions of GetIPs, GetNICNameByIP and GetNICNameAndIP to replace GetIP, GetInterfaceByIP and GetInterfaceAndIP.
  • Fixed:
    • WalkDir will panic because os.FileInfo is nil when an error occurs and is ignored.

v7.5.1

20 Feb 15:00
Compare
Choose a tag to compare
  • Fixed:
    • Fix a bug about WalkDir to traverse the sub-directories recursively.

v7.5.0

01 Jan 09:49
Compare
Choose a tag to compare
  • Added:
    • Add the sub-package namespace to operate the linux namespace.
  • Other:
    • Optimize the function WalkDir.

v7.4.0

17 Oct 05:22
Compare
Choose a tag to compare
  • Added:
    • Add the new sub-package slice to supply some assistant functions about slice.
    • Add the new sub-package scanner to replace the stdlib bufio.Scanner, which adds the read offset.

v7.3.0

17 Sep 15:23
Compare
Choose a tag to compare
  • Added:
    • Add the function GetMac(ipOrIface) to get the mac address by the ip or NIC name.
    • Add the function GetInterfaceAndIP to combine GetIP and GetInterfaceByIP together.
    • Add the new methods Strings, uint, uint64, int, int64 for the type Set to return the corresponding type slice.

v7.2.0

09 Sep 12:52
Compare
Choose a tag to compare
  • Added:
    • Add the hook FilterHook instead of Hook.
    • Add the global default timeout DefaultTimeout for execution.Cmd.
    • Add the convenient shell functions, like RunShellCmd or RunShellScript, to execute the shell command or script.

v7.1.0

10 Jun 13:57
Compare
Choose a tag to compare
  • Added:
    • Add the new interfaces Peeker and PeekerConn to allow the user to peek the data without advancing the reader.
    • Add the new function CopyNBuffer, like io.CopyN, but using the given buffer instead of the default one.
  • DEPRECATED:
    • The sub-package pools is deprecated, and please use github.com/xgfone/go-pools.