From df6d5f7e24a290718adf8f068649c3bc61f5eb4d Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Tue, 24 Aug 2021 18:31:13 +0200 Subject: refactor: extract chunk.og & add Reader getter --- const.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 const.go (limited to 'const.go') diff --git a/const.go b/const.go new file mode 100644 index 0000000..700d3df --- /dev/null +++ b/const.go @@ -0,0 +1,11 @@ +package main + +// Defined as var to prevent from using them as const as I want to keep +// beeing able to change tkem at runtime. +var ( + chunkSize = 8 << 10 + chunksName = "chunks" + chunkIdFmt = "%015d" + versionFmt = "%05d" + filesName = "files" +) -- cgit v1.2.3