diff options
| author | Shulhan <m.shulhan@gmail.com> | 2020-12-06 04:11:04 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2020-12-06 04:11:04 +0700 |
| commit | 11e7727cec1a94a57ecec541149c8c1b53ad95b4 (patch) | |
| tree | 1cd375eaf9315e73e9ae1300ffc0f8786bc685b3 /go.mod | |
| parent | 3f958900109323b8c66c2ee6847ba337f0b054bf (diff) | |
| download | pakakeh.go-0.21.0.tar.xz | |
Release share v0.21.0 (2020-12-06)v0.21.0
=== Breaking changes
* test: refactoring Assert with better error message
The new Assert function use the reflect.DoEqual that return an error
which describe which field have unmatched value.
=== New features
* http: allow Endpoint to register custom error handler
The new field ErrorHandler on Endpoint allow the implementor to define
their own function to handler error from Endpoint.Call.
If the ErrorHandler is nil it will default to DefaultErrorHandler.
* totp: new package that implement TOTP protocol
Package totp implement Time-Based One-Time Password Algorithm based on
RFC 6238.
=== Bug fixes
* parser: fix Line method that always return non-empty line
In case of content end without new line, for example "a\nb", the Line()
method always return "b, 0" on the last line.
* smtp: update the expired test certificate
* websocket: create buffered channel for running queue.
This is to fix Stop() method waiting for running channel to be consumed.
=== Enhancements
* big: update the latest expected error message with Go tip
* http: add an example on how to write custom HTTP status code
The example show how to use http.ResponseWriter.WriteHeader to write
custom HTTP status code instead of relying on errors.E.
* net: always return the host name or IP on ParseIPPort.
Previously, if the address is an IP address the returned value is empty,
for example "127.0.0.1" will return empty host but with non-nil IP and
port.
This changes always return the host either as host name (the same as
paremeter) or valid IP address.
=== Chores
* all: replace the tasks to serve and generate docs using ciigo as library
This way, one does not need to install ciigo binary, only require Go
tools.
Diffstat (limited to 'go.mod')
| -rw-r--r-- | go.mod | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -3,8 +3,7 @@ module github.com/shuLhan/share go 1.13 require ( - git.sr.ht/~shulhan/asciidoctor-go v0.0.0-20201205130914-be765f32b57b // indirect - git.sr.ht/~shulhan/ciigo v0.2.1-0.20201125182647-7520991ff810 + git.sr.ht/~shulhan/ciigo v0.3.0 golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb golang.org/x/sys v0.0.0-20201107080550-4d91cf3a1aaf |
