From c128865c4c7411c29a59fca9a3a2f95537686d7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= Date: Mon, 20 Jan 2020 18:41:05 +0000 Subject: Move commands to cmd/ and move internal dependencies to internal/ --- fs/catfile.go | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 fs/catfile.go (limited to 'fs/catfile.go') diff --git a/fs/catfile.go b/fs/catfile.go deleted file mode 100644 index 99f521f..0000000 --- a/fs/catfile.go +++ /dev/null @@ -1,27 +0,0 @@ -package fs - -import "sync" - -// CatFile is for reading a whole file. -type CatFile struct { - readFile -} - -// NewCatFile returns a new file catter. -func NewCatFile(filePath string, globID string, serverMessages chan<- string, limiter chan struct{}) CatFile { - var mutex sync.Mutex - - return CatFile{ - readFile: readFile{ - filePath: filePath, - stop: make(chan struct{}), - globID: globID, - serverMessages: serverMessages, - retry: false, - canSkipLines: false, - seekEOF: false, - limiter: limiter, - mutex: &mutex, - }, - } -} -- cgit v1.2.3