blob: 77d491119365dfceb571784a17790c3721310ab3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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() {
}
|