aboutsummaryrefslogtreecommitdiff
path: root/editor/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'editor/file.go')
-rw-r--r--editor/file.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/editor/file.go b/editor/file.go
new file mode 100644
index 0000000..e22c279
--- /dev/null
+++ b/editor/file.go
@@ -0,0 +1,13 @@
+package editor
+
+import (
+ "time"
+)
+
+// File holds information about a file on disk.
+type File struct {
+ name string
+ read bool // true if file has been read
+ mtime time.Time // of file when last read/written
+ sha256 string // of file when last read/written
+}