diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-08-24 18:31:13 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2021-08-24 18:40:05 +0200 |
commit | df6d5f7e24a290718adf8f068649c3bc61f5eb4d (patch) | |
tree | ddc31a133a8e82b0529264962fd75d6515b1ab4e /const.go | |
parent | b070eae35c1e7a4996b90208153d01f2be08d588 (diff) | |
download | dna-backup-df6d5f7e24a290718adf8f068649c3bc61f5eb4d.tar.gz dna-backup-df6d5f7e24a290718adf8f068649c3bc61f5eb4d.zip |
refactor: extract chunk.og & add Reader getter
Diffstat (limited to 'const.go')
-rw-r--r-- | const.go | 11 |
1 files changed, 11 insertions, 0 deletions
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" +) |