From db40818ef79ccb3f5f9232623f57ad284a4af7d0 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Wed, 1 Sep 2021 19:07:35 +0200 Subject: move some consts into repo --- const.go | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'const.go') diff --git a/const.go b/const.go index c97578c..71762db 100644 --- a/const.go +++ b/const.go @@ -1,14 +1,8 @@ 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" - sketchWSize = 32 - sketchSfCount = 3 - sketchFCount = 4 +const ( + chunksName = "chunks" + chunkIdFmt = "%015d" + versionFmt = "%05d" + filesName = "files" ) -- cgit v1.2.3