aboutsummaryrefslogtreecommitdiff
path: root/editor/file.go
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2018-02-26 23:51:03 +0100
committerPetter Rodhelind <petter.rodhelind@gmail.com>2018-02-26 23:51:03 +0100
commit2395485d075f80117fe3ce25ef339bb1ffecf160 (patch)
tree87cabebd5ba1c7210adb5dabe253310f17694931 /editor/file.go
parent0023e0929ac7075cd008e0093de58ddc89efd597 (diff)
downloadpoe-2395485d075f80117fe3ce25ef339bb1ffecf160.tar.gz
poe-2395485d075f80117fe3ce25ef339bb1ffecf160.tar.bz2
poe-2395485d075f80117fe3ce25ef339bb1ffecf160.zip
Total redesign. Separating editor parts from UI.
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
+}