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

Releases: xgfone/go-tools

v2.3.0

05 Dec 15:13
Compare
Choose a tag to compare
  • Add the 2nd version for some methods of HTTP Context: Status2, Redirect2, Data2, Render2, XML2, JSON2, which don't need the status code and have the default status code if not giving.

v2.2.0

05 Dec 14:38
Compare
Choose a tag to compare
  • Add some HTTP helper functions.
  • Add the HTTP Context to simplify the HTTP handling.
  • Add HTTP body decoder register function.
  • Register some common MIME.

v2.1.0

30 Nov 15:09
Compare
Choose a tag to compare
  • Optimize some functions.
  • Merge the sub-package server into net2 and makr server as DEPRECATED.
  • Add some Must* functions, such as MustToSlice, MustToMap, etc.

v2.0.0

25 Nov 08:59
Compare
Choose a tag to compare

Release v2:

  • Add some new functions.
  • Merge some sub-packages into one sub-package, such as merging extremum, compare, method, values into function, etc.
  • Rename the name of some sub-packages, such as log2, net2, strings2, etc.
  • Remove some sub-packages, such as datetime, etc.
  • Remove some types, such as SMap and Slice in the sub-package values in v1, etc.
  • Remove some deprecated types or functions, such as Dispatcher in the sub-package worker, etc.
  • ......

v1.5.0

25 Nov 08:58
Compare
Choose a tag to compare
  • Add the new functions: GetAllIPs and IPIsOnHost.
  • Add the new struct Close, which implements the method Close() without the returned value. And TCP connection pool uses the struct Close instead.
  • NewHTTPError returns the type HTTPError, not error, so you can use its attributions.
  • Export BaseResourceLock.
  • Mark IsEmail, IsEmailRFC, IsURL as DEPRECATED.
  • Fix a bug about Dispatch: when the job queue is closed, the task workers exit automatically.

v1.4.0

16 Nov 02:25
Compare
Choose a tag to compare

Two major updates:

  1. Change the implementation of the resource lock, which has a better performance.
  2. Unify the logging of the toolkit and add the logging function wrapper helper.