diff options
| author | Shulhan <ms@kilabit.info> | 2024-10-06 18:42:16 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-10-06 18:42:16 +0700 |
| commit | 45b111af175b39a428fd33f277b83ca8284fcf2d (patch) | |
| tree | 369c68e6116699e99e3ed90bfe88fd7eba8c8bc3 | |
| parent | f2343c644b0cc8c239991709261f46ca194c6ba0 (diff) | |
| download | pakakeh.go-45b111af175b39a428fd33f277b83ca8284fcf2d.tar.xz | |
Release pakakeh.go v0.58.0 (2024-10-06)v0.58.0
This release update the minimum Go module to 1.22.0, the last version
supported by Go tools.
=== Breaking changes
* lib/http: remove writing StatusNoContent on ResponseTypeNode
To make it consistent with RequestTypeNone, the ResponseTypeNone
should not write any response header or HTTP status code. It will be
handled manually by [Endpoint.Call].
=== New features
* lib/play: new package for formatting and running Go code
Package play provides callable APIs and HTTP handlers to format and
run Go code, similar to Go playground, but using HTTP instead of
WebSocket.
* lib/http: add Server method to register handler by function
The RegisterHandleFunc register a pattern with a handler, similar to
[http.ServeMux.HandleFunc]. The pattern follow the Go 1.22 format:
[METHOD] PATH
The METHOD is optional, default to GET. The PATH must not contains
the domain name and space. Unlike standard library, variable in PATH
is read using ":var" not "{var}". This endpoint will accept any
content type and return the body as is; it is up to the handler to
read and set the content type and the response headers.
If the METHOD and/or PATH is already registered it will panic.
* lib/bytes: add function AppendInt64 and AppendUint64
The AppendInt64 append an int64 value into slice of byte. The
AppendUint64 append an uint64 value into slice of byte.
| -rw-r--r-- | CHANGELOG.adoc | 54 | ||||
| -rw-r--r-- | pakakeh.go | 2 |
2 files changed, 54 insertions, 2 deletions
diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index e42c5792..c7e8d9a2 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -1,4 +1,4 @@ -= CHANGELOG += pakakeh.go CHANGELOG :toc: :sectanchors: @@ -20,6 +20,58 @@ link:CHANGELOG_2018-2019.html[Changelog from 2018 to 2019^]. This is changelog for `pakakeh.go` module since v0.1.0 until v0.11.0. +[#v0_58_0] +== pakakeh.go v0.58.0 (2024-10-06) + +This release update the minimum Go module to 1.22.0, the last version +supported by Go tools. + +[#v0_58_0__breaking_changes] +=== Breaking changes + +lib/http: remove writing StatusNoContent on ResponseTypeNode:: ++ +To make it consistent with RequestTypeNone, the +ResponseTypeNone should not write any response header or +HTTP status code. +It will be handled manually by [Endpoint.Call]. + +[#v0_58_0__new_features] +=== New features + +lib/play: new package for formatting and running Go code:: ++ +Package play provides callable APIs and HTTP handlers to format and +run Go code, similar to Go playground, but using HTTP instead of +WebSocket. + +lib/http: add Server method to register handler by function:: ++ +-- +The RegisterHandleFunc register a pattern with a handler, similar to +[http.ServeMux.HandleFunc]. +The pattern follow the Go 1.22 format: + + [METHOD] PATH + +The METHOD is optional, default to GET. +The PATH must not contains the domain name and space. +Unlike standard library, variable in PATH is read using ":var" not +"{var}". +This endpoint will accept any content type and return the body as is; +it is up to the handler to read and set the content type and the +response headers. + +If the METHOD and/or PATH is already registered it will panic. +-- + + +lib/bytes: add function AppendInt64 and AppendUint64:: ++ +The AppendInt64 append an int64 value into slice of byte. +The AppendUint64 append an uint64 value into slice of byte. + + [#v0_57_0] == pakakeh.go v0.57.0 (2024-09-03) @@ -8,5 +8,5 @@ package pakakeh var ( // Version of this module. - Version = `0.57.0` + Version = `0.58.0` ) |
