Skip to content

Commit 453530a

Browse files
committed
add time handling in tools
1 parent 2a8dfff commit 453530a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tools/tools.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"path"
99
"path/filepath"
1010
"strings"
11+
"time"
1112

1213
log "github.com/Sirupsen/logrus"
1314
"github.com/xrash/smetrics"
@@ -29,10 +30,11 @@ import (
2930
// Logger: log.Logger
3031
// }
3132
type Tools struct {
32-
Directory string
33-
IndexURL string
34-
Logger log.StdLogger
35-
installed map[string]string
33+
Directory string
34+
IndexURL string
35+
LastRefresh time.Time
36+
Logger log.StdLogger
37+
installed map[string]string
3638
}
3739

3840
// Init creates the Installed map and populates it from a file in .arduino-create

0 commit comments

Comments
 (0)