[go-nuts] Re: Code review/Advice - reading and editing a CSV

2017-03-18 Thread Robbie Wright
Thanks Peter, Cecil and Charles! I have attached the code as it stands, sorry for not getting back to you sooner. It's still messy but it works, that is, it outputs a column of economic block values in IJK order to be input into an open pit optimiser. The code is for an open source pit

[go-nuts] Re: Code review/Advice - reading and editing a CSV

2017-02-24 Thread Mandolyte
I deal with CSV files a lot. I have made most available here: https://github.com/mandolyte/csv-utils Hope it helps, Cecil -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an

[go-nuts] Re: Code review/Advice - reading and editing a CSV

2017-02-24 Thread peterGo
Robbie, Fixed some typos: https://play.golang.org/p/GGjoeOYfRN Peter On Friday, February 24, 2017 at 12:48:44 PM UTC-5, peterGo wrote: > > Robbie, > > It's hard to understand what you are doing. > > The header says that there is no grade and sg is not where you say it is. > Why are you using a

[go-nuts] Re: Code review/Advice - reading and editing a CSV

2017-02-24 Thread peterGo
Robbie, Fixed a typo: https://play.golang.org/p/JbKGJMw4r3 Peter On Friday, February 24, 2017 at 12:48:44 PM UTC-5, peterGo wrote: > > Robbie, > > It's hard to understand what you are doing. > > The header says that there is no grade and sg is not where you say it is. > Why are you using a

[go-nuts] Re: Code review/Advice - reading and editing a CSV

2017-02-24 Thread peterGo
Robbie, It's hard to understand what you are doing. The header says that there is no grade and sg is not where you say it is. Why are you using a channel? Why are you limiting the size of your input by reading the entire file into memory? And so on. My best guess is that you want to do