DM
Size: a a a
RS
DM
RS
RS
RS
VM
stats["total"]["tx"] = "a"
stats["total"]["rx"] = "a"
stats["hourl"]["tx"] = "a"
stats["hour"]["rx"] = "a"
stats["fivemin"]["tx"] = "a"
stats["fivemin"]["rx"] = "a"
stats как map[string]map[string]string, но что-то не выходит каменный цветочек...type stat struct {} - как-то не хочется...RL
VM
VM
RS
VM
VM
stats["total"]. Так, для вида расшарил :)VM
VM
RS
new делает указатель указывающий на heap-объект с zero value