This repository was archived by the owner on Apr 1, 2023. It is now read-only.
Releases: xgfone/go-tools
Releases · xgfone/go-tools
v9.0.0: Refactor with Generics
v8.0.0
- Changed:
- Rename the sub-package
sort2
tosort
and remove the functionsInterfaces
. - Rename the sub-package
strings2
tostrings
, remove the string builderBuilder
and the splie functions likeSplitXX
. - Rename the sub-package
json2
tojson
and remove the functionsToBytesErr
,ToBytes
,ToStringErr
,ToString
,EncodeNowTime
,EncodeTime
,Write
. - Rename the sub-package
net2
tonet
, useNormalizeMac
to replace others likeNormalizeMacXX
, remove the functionInSlice
,IsIP
,GetIPs
,GetIP
,GetMac
,GetMac
,GetInterfaceByIP
,GetNICNameAndIP
,GetInterfaceAndIP
,GetInterfaceAndIP
,GetAllNetIPs
.
- Rename the sub-package
- 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 modulegithub.com/xgfone/go-atexit
. - Remove the sub-package
pools
and move it to the independent modulegithub.com/xgfone/go-pools
. - Remove the sub-package
atexit
and move it to the independent modulegithub.com/xgfone/go-atexit
. - Remove the sub-package
execution
and move it to the independent modulegithub.com/xgfone/go-exec
. - Remove the sub-package
namespace
and move it to the independent modulegithub.com/xgfone/go-namespace
.
- Remove the sub-package
v7.7.0
v7.6.0
- Deprecated:
- Deprecate the functions
GetIP
,GetInterfaceByIP
andGetInterfaceAndIP
.
- Deprecate the functions
- Added:
- Add the new functions of
GetIPs
,GetNICNameByIP
andGetNICNameAndIP
to replaceGetIP
,GetInterfaceByIP
andGetInterfaceAndIP
.
- Add the new functions of
- Fixed:
WalkDir
will panic becauseos.FileInfo
isnil
when an error occurs and is ignored.
v7.5.1
v7.5.0
v7.4.0
v7.3.0
- Added:
- Add the function
GetMac(ipOrIface)
to get the mac address by the ip or NIC name. - Add the function
GetInterfaceAndIP
to combineGetIP
andGetInterfaceByIP
together. - Add the new methods
Strings
,uint
,uint64
,int
,int64
for the typeSet
to return the corresponding type slice.
- Add the function
v7.2.0
v7.1.0
- Added:
- Add the new interfaces
Peeker
andPeekerConn
to allow the user to peek the data without advancing the reader. - Add the new function
CopyNBuffer
, likeio.CopyN
, but using the given buffer instead of the default one.
- Add the new interfaces
- DEPRECATED:
- The sub-package
pools
is deprecated, and please usegithub.com/xgfone/go-pools
.
- The sub-package