From da20d649b3775c4c061ff2aeefe1cea44bac1d19 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Fri, 20 Aug 2021 16:31:59 +0200 Subject: initial commit first working chunking logic --- main.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 main.go (limited to 'main.go') diff --git a/main.go b/main.go new file mode 100644 index 0000000..20289fd --- /dev/null +++ b/main.go @@ -0,0 +1,19 @@ +package main + +import ( + "os" +) + +func main() { + path := "." + + if len(os.Args) > 1 { + path = os.Args[1] + } + + files := make(chan File) + chunks := make(chan []byte) + go ListFiles(path, files) + go ReadFiles(files, chunks) + DumpChunks(".", chunks) +} -- cgit v1.2.3