I have such code block where I just increment counters:
switch fileInfo.RequestType {
case lib.WRITE:
WriteCounter += 1
case lib.READ:
ReadCounter += 1
}
It seems to me that this snippet doesn't look like a idiomatic golang code. Can it be done more short and "elegant"?