summaryrefslogtreecommitdiff
path: root/share.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-05-03 22:32:22 +0700
committerShulhan <ms@kilabit.info>2021-05-03 22:32:22 +0700
commitc1f52312662bad7d425fbb57fe731510bb0734a9 (patch)
treed1c80eeda12a2faf541d52dc948428a41b167854 /share.go
parent9f303d5944f71dcf4f639424c385ea231d2e1150 (diff)
downloadpakakeh.go-0.26.0.tar.xz
Release share v0.26.0 (2021-05-03)v0.26.0
=== New features * math/big: add method Add, IsLess, IsGreater, and Scan on Int The Add method simplify addition of one value to current Int. The IsLess and IsGreater method simplify comparing Int with any value. The Scan method allow the Int to be used on sql Scan(). * math/big: add method IsZero on Int The IsZero method will return true if the current i value is zero. * big: extends the standard big.Int The standard big.Int does not implement sql/driver.Valuer interface, which make it not usable when querying or doing update/insert with database. This commit extend the big.Int and simplify creating new Int from any values using NewInt(). Also, make it support marshal/unmarshal JSON === Enhancements * sql: make the column filename on table _migration as primary key This will allow deleting the record by filename instead of requiring all columns. * http: add the Total field to EndpointResponse The Total field contains the total number of all records, while the Count fields only contains the total number of records in Data. * http: add field Page to EndpointResponse The page field contains the requested page on current response. If page is from request then the offset will be set to page times limit. While at it, move the field comment to its declaration. * big: allow creating new Rat from uint64 and *big.Int * ssh: check for empty private key file on Get and Put If the private key file is empty, skip it for being added as parameter of scp command. This is to prevent warning message on user side. === Chores * memfs: update the test ContentType for JavaScript files The latest Go set the content type for JavaScript file as "text/javascript; charset=utf-8", not "application/javascript". * paseto: replace le64() function with binary.Write() The le64() return the string representation of uint64 in little endian, which is basically binary.Write with parameter output buffer, LittleEndian, and input value.
Diffstat (limited to 'share.go')
-rw-r--r--share.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/share.go b/share.go
index e3d1b8e5..5207c8af 100644
--- a/share.go
+++ b/share.go
@@ -10,5 +10,5 @@ package share
const (
// Version of this module.
- Version = "0.24.0"
+ Version = "0.26.0"
)