From 13ac1d151acfc3d402747a969610f1f6a321012e Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sat, 18 Aug 2018 19:54:44 +1000 Subject: [PATCH] WIP updater package --- pkg/updates/updates.go | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pkg/updates/updates.go diff --git a/pkg/updates/updates.go b/pkg/updates/updates.go new file mode 100644 index 000000000..77d491119 --- /dev/null +++ b/pkg/updates/updates.go @@ -0,0 +1,26 @@ +package updates + +// Update checks for updates and does updates +type Update struct { + LastChecked string +} + +// Updater implements the check and update methods +type Updater interface { + Check() + Update() +} + +// NewUpdater creates a new updater +func NewUpdater() *Update { + + update := &Update{ + LastChecked: "today", + } + return update +} + +// Check checks if there is an available update +func (u *Update) Check() { + +}