diff options
| author | Shulhan <ms@kilabit.info> | 2024-04-04 21:45:27 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-04-04 21:45:27 +0700 |
| commit | 9a2bcad4d62c7fd93a3411e0a60cfa07c2b04051 (patch) | |
| tree | c0312b9823931100ee3cf2b3e1efbd165fc8c70a | |
| parent | dc67158aeeb6035f0755a3156449a342edbf24b0 (diff) | |
| download | asciidoctor-go-9a2bcad4d62c7fd93a3411e0a60cfa07c2b04051.tar.xz | |
Release asciidoctor-go v0.5.2 (2023-04-04)v0.5.2
This release only contains chores.
* all: replace module "share" with "pakakeh.go"
The "share" module has been moved to new repository with new name at
"https://sr.ht/~shulhan/pakakeh.go".
For more information see the change logs at "pakakeh.go" module.
* all: comply with linter recommendations
Most of the code changes related to refactoring if-else witch switch
statement.
* all: replace if-else bytes.Equals with static string case comparisons
Using string instead of [bytes.Equal] give code much more readable.
| -rw-r--r-- | CHANGELOG | 23 | ||||
| -rw-r--r-- | asciidoctor.go | 2 | ||||
| -rw-r--r-- | go.mod | 4 | ||||
| -rw-r--r-- | go.sum | 4 | ||||
| -rw-r--r-- | testdata/document_tohtml_test.txt | 4 | ||||
| -rw-r--r-- | testdata/test.got.html | 2 |
6 files changed, 31 insertions, 8 deletions
@@ -6,6 +6,29 @@ Shulhan <ms@kilabit.info> :sectlinks: +[#v0_5_2] +== asciidoctor-go v0.5.2 (2023-04-04) + +This release only contains chores. + +all: replace module "share" with "pakakeh.go":: ++ +-- +The "share" module has been moved to new repository with new name at +"https://sr.ht/~shulhan/pakakeh.go". +For more information see the change logs at "pakakeh.go" module. +-- + +all: comply with linter recommendations:: ++ +Most of the code changes related to refactoring if-else witch switch +statement. + +all: replace if-else bytes.Equals with static string case comparisons:: ++ +Using string instead of [bytes.Equal] give code much more readable. + + [#v0_5_1] == asciidoctor-go v0.5.1 (2023-12-14) diff --git a/asciidoctor.go b/asciidoctor.go index f7c2f5e..d8c150d 100644 --- a/asciidoctor.go +++ b/asciidoctor.go @@ -11,7 +11,7 @@ import "git.sr.ht/~shulhan/pakakeh.go/lib/math/big" const ( // Version of this module. - Version = `0.5.1` + Version = `0.5.2` _lf = "\n" ) @@ -3,8 +3,8 @@ module git.sr.ht/~shulhan/asciidoctor-go -go 1.20 +go 1.21 -require git.sr.ht/~shulhan/pakakeh.go v0.53.2-0.20240305092154-76510776395b +require git.sr.ht/~shulhan/pakakeh.go v0.54.0 //replace git.sr.ht/~shulhan/pakakeh.go => ../pakakeh.go @@ -1,2 +1,2 @@ -git.sr.ht/~shulhan/pakakeh.go v0.53.2-0.20240305092154-76510776395b h1:LtSlSrDg3Zw1ASfUi5enaHqefPWiWsPEDK+IlzSO72g= -git.sr.ht/~shulhan/pakakeh.go v0.53.2-0.20240305092154-76510776395b/go.mod h1:C43kVQ9Dai9Ol3bCHi8VKeOtYzp+E8617jNBaIsmd8o= +git.sr.ht/~shulhan/pakakeh.go v0.54.0 h1:pwTQiJSyE5xTaWNR0FnWsszJ+0Z5hB2ufNLXcy8z0y8= +git.sr.ht/~shulhan/pakakeh.go v0.54.0/go.mod h1:ys7WNtXm03x0M59oqrqBjXnc+wRCX8JBXyE/W8+KVbw= diff --git a/testdata/document_tohtml_test.txt b/testdata/document_tohtml_test.txt index e7734da..c72dd25 100644 --- a/testdata/document_tohtml_test.txt +++ b/testdata/document_tohtml_test.txt @@ -21,7 +21,7 @@ Document body. <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> -<meta name="generator" content="asciidoctor-go 0.5.1"> +<meta name="generator" content="asciidoctor-go 0.5.2"> <meta name="description" content="Multiline description with backslash"> <meta name="keywords" content="multiline, key, words"> <meta name="author" content="John Doe"> @@ -70,7 +70,7 @@ Section 2 content. <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> -<meta name="generator" content="asciidoctor-go 0.5.1"> +<meta name="generator" content="asciidoctor-go 0.5.2"> <meta name="author" content="John Doe"> <title>Title</title> </head> diff --git a/testdata/test.got.html b/testdata/test.got.html index 0d72804..b567740 100644 --- a/testdata/test.got.html +++ b/testdata/test.got.html @@ -3056,7 +3056,7 @@ this sidebar.</p> <div id="footer"> <div id="footer-text"> 1.1.1<br> -Last updated 2023-05-30 01:01:33 +0700 +Last updated 2024-04-04 21:22:35 +0700 </div> </div> </body> |
