Some golint fixes
This commit is contained in:
5
main.go
5
main.go
@@ -16,7 +16,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
SLEEP_TIME = 3 * time.Second // time between processing xinput output
|
// time between processing xinput output
|
||||||
|
SLEEP_TIME = 3 * time.Second
|
||||||
KEYBOARD_BUFER_SIZE = 10000
|
KEYBOARD_BUFER_SIZE = 10000
|
||||||
DATABASE_NAME = "file:gokeystat.db?cache=shared&mode=rwc"
|
DATABASE_NAME = "file:gokeystat.db?cache=shared&mode=rwc"
|
||||||
CAPTURE_TIME = 5 // time in seconds between capturing keyboard to db
|
CAPTURE_TIME = 5 // time in seconds between capturing keyboard to db
|
||||||
@@ -28,7 +29,7 @@ type StatForTime struct {
|
|||||||
keys map[uint8]int
|
keys map[uint8]int
|
||||||
}
|
}
|
||||||
|
|
||||||
// StatForTime.Init set time to Now().Unix() and keys to empty map
|
// Init set time to Now().Unix() and keys to empty map
|
||||||
func (stat *StatForTime) Init() {
|
func (stat *StatForTime) Init() {
|
||||||
stat.time = time.Now().Unix()
|
stat.time = time.Now().Unix()
|
||||||
stat.keys = make(map[uint8]int)
|
stat.keys = make(map[uint8]int)
|
||||||
|
|||||||
Reference in New Issue
Block a user