diff options
| author | Shulhan <ms@kilabit.info> | 2024-12-26 04:15:28 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-12-28 16:46:59 +0700 |
| commit | 4003b6359747f6e43357e4bf190d4e71a66ec796 (patch) | |
| tree | f219d067b0a5a3a2bfe8554f88f39f580a5c59d6 /lib/binary/binary.go | |
| parent | 052d4673d0d7777bd429134f9f30c4a87462208f (diff) | |
| download | pakakeh.go-4003b6359747f6e43357e4bf190d4e71a66ec796.tar.xz | |
lib/binary: implement append-only binary file
The binary is new package that complement the standard binary package
Currently it implement append-only binary that encode the data using
[binary.Writer].
We call them "Apo" for short.
Diffstat (limited to 'lib/binary/binary.go')
| -rw-r--r-- | lib/binary/binary.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/binary/binary.go b/lib/binary/binary.go new file mode 100644 index 00000000..72479d2d --- /dev/null +++ b/lib/binary/binary.go @@ -0,0 +1,12 @@ +// SPDX-FileCopyrightText: 2024 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause + +// Package binary complement the standard [binary] package. +package binary + +import "time" + +var timeNow = func() time.Time { + return time.Now().UTC() +} |
