Go is pretty new to me and i have some troubles understanding the memory usage :
I want to load a file similar to csv into an array of rows, each row being a struct composed of a key on 22 char and an array of values (string).
My code look like this : https://play.golang.org/p/hJ4SHjVXaG
Problem is that for a file of 450M it uses around 2G1 of memory.
Does anyone have a solution to reduce that memory use ?
Update using SirDarius solution : https://play.golang.org/p/DBmOFOkZdx still use around 1G9