Skip to Content
Hands-On Software Engineering with Golang
book

Hands-On Software Engineering with Golang

by Achilleas Anagnostopoulos
January 2020
Intermediate to advanced
640 pages
16h 56m
English
Packt Publishing
Content preview from Hands-On Software Engineering with Golang

Taking care of formatting and imports (gofmt, goimports)

Tabs or spaces? Should opening braces be preceded by line breaks? All engineers eventually face this dilemma when the time comes to choose a particular code formatting style for a new project or a project they've just inherited.

Source code formatting styles have always been the subject of long, often heated, arguments between team members. Contrary to other programming languages, Go is, by design, strongly opinionated toward a specific formatting style and ships with tools that help enforce that particular style. This design decision makes sense as Go was initially created with the goal of being used by the thousands of engineers employed by Google. At this massive development scale, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Software Architecture with Golang

Hands-On Software Architecture with Golang

Jyotiswarup Raiturkar

Publisher Resources

ISBN: 9781838554491Supplemental Content