Smarty Blog - January 2018

GO: With IntensityArrow Icon
Smarty has partnered with to create a Go programming video series.
January 12, 2018 - TODO: - link to Jonathan's posts on why we left . Net and why we embraced Go and linux - Explain cleancoderse. com - Explain how the case studies work - Introduce the Go case study - Include small blurb from each episode's intro.
Scanning CSV in GoArrow Icon
Wouldn't it be nice if csv.Reader was more like bufio.Scanner?
January 5, 2018 - For the purpose of this article, consider the following CSV data, slightly modified from the docs for encoding/csv: go csvData := strings. NewReader(strings. Join([]string{ first_name,last_name,username, "Rob","Pike",rob, Ken,Thompson,ken, "Robert","Griesemer","gri", }, "\n")) Here's how you read the data, line by line, using the Reader provided in that package: go reader := csv. NewReader(csvData) for { record, err := reader. Read() if err == io. EOF { break } if err != nil { // handle the error.
View Blog Tags

The leader in location data intelligence

Ready to get started?