<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pakakeh.go, branch v0.26.0</title>
<subtitle>Collections of packages and tools for working with Go programming language.</subtitle>
<id>http://git.kilabit.info/pakakeh.go/atom?h=v0.26.0</id>
<link rel='self' href='http://git.kilabit.info/pakakeh.go/atom?h=v0.26.0'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/'/>
<updated>2021-05-03T15:32:22Z</updated>
<entry>
<title>Release share v0.26.0 (2021-05-03)</title>
<updated>2021-05-03T15:32:22Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2021-05-03T15:32:22Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=c1f52312662bad7d425fbb57fe731510bb0734a9'/>
<id>urn:sha1:c1f52312662bad7d425fbb57fe731510bb0734a9</id>
<content type='text'>
=== 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.
</content>
</entry>
<entry>
<title>memfs: update the test ContentType for JavaScript files</title>
<updated>2021-04-27T03:45:56Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2021-04-27T03:45:56Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=9f303d5944f71dcf4f639424c385ea231d2e1150'/>
<id>urn:sha1:9f303d5944f71dcf4f639424c385ea231d2e1150</id>
<content type='text'>
The latest Go set the content type for JavaScript file as
"text/javascript; charset=utf-8", not "application/javascript".
</content>
</entry>
<entry>
<title>sql: make the column filename on table _migration as primary key</title>
<updated>2021-04-27T03:44:25Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2021-04-27T03:44:25Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=3d4102ec38177870358a87db356a7ad8b2569caa'/>
<id>urn:sha1:3d4102ec38177870358a87db356a7ad8b2569caa</id>
<content type='text'>
This will allow deleting the record by filename instead of requiring
all columns.
</content>
</entry>
<entry>
<title>big: add method Add, IsLess, IsGreater, and Scan</title>
<updated>2021-04-27T02:46:40Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2021-04-27T02:46:40Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=f6e0e032260885a00a257bb1b82f3ad3a4c05c36'/>
<id>urn:sha1:f6e0e032260885a00a257bb1b82f3ad3a4c05c36</id>
<content type='text'>
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().
</content>
</entry>
<entry>
<title>math/big: add method IsZero on Int</title>
<updated>2021-04-23T06:14:36Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2021-04-23T06:14:36Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=67c535fdbaed599629848e034b73a009efcfe91a'/>
<id>urn:sha1:67c535fdbaed599629848e034b73a009efcfe91a</id>
<content type='text'>
The IsZero method will return true if the current i value is zero.
</content>
</entry>
<entry>
<title>math/big: use consistent receiver name for Int methods</title>
<updated>2021-04-23T06:12:08Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2021-04-23T06:12:08Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=c0dbddb12e8e41c77d52ca2dd84a2e7e2968179b'/>
<id>urn:sha1:c0dbddb12e8e41c77d52ca2dd84a2e7e2968179b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>math/big: extend Int to support marshal/unmarshal JSON</title>
<updated>2021-04-23T04:51:31Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2021-04-23T04:51:31Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=aff8a206c06e39a010ab90d88f41ae78d7a127f3'/>
<id>urn:sha1:aff8a206c06e39a010ab90d88f41ae78d7a127f3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>paseto: replace le64() function with binary.Write()</title>
<updated>2021-04-22T03:25:07Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2021-04-22T03:25:07Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=a9f936aea6b2512e0af62ccacc50d89c194233d0'/>
<id>urn:sha1:a9f936aea6b2512e0af62ccacc50d89c194233d0</id>
<content type='text'>
The le64() return the string representation of uint64 in little endian,
which is basically binary.Write with parameter output buffer,
LittleEndian, and input value.
</content>
</entry>
<entry>
<title>http: add the Total field to EndpointResponse</title>
<updated>2021-04-21T14:15:57Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2021-04-21T14:15:57Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=106169f4694181da24fc1e353499a97bff8e0bc2'/>
<id>urn:sha1:106169f4694181da24fc1e353499a97bff8e0bc2</id>
<content type='text'>
The Total field contains the total number of all records, while the
Count fields only contains the total number of records in Data.
</content>
</entry>
<entry>
<title>big: extends the standard big.Int</title>
<updated>2021-04-21T07:26:29Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2021-04-21T07:26:29Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=918a755b244287b7c4a7d450eac5a3800541c017'/>
<id>urn:sha1:918a755b244287b7c4a7d450eac5a3800541c017</id>
<content type='text'>
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().
</content>
</entry>
</feed>
