import: Forgot to initialize map

This commit is contained in:
Hamcha 2016-02-12 16:22:09 +00:00
parent ac39359607
commit 3eaa5bf8e3

View file

@ -55,6 +55,7 @@ func main() {
var data Stats var data Stats
data.ByUser = make(map[string]uint64) data.ByUser = make(map[string]uint64)
data.ByDate = make(map[string]uint64) data.ByDate = make(map[string]uint64)
data.Username = make(map[string]string)
scanner := bufio.NewScanner(file) scanner := bufio.NewScanner(file)
lines := 0 lines := 0