DEV Community

Discussion on: Update - How do you refactor this piece of code?

Collapse
 
okbrown profile image
Orlando Brown

Not that experienced in Golang, but your heading in the right direction to split it out into separate functions. Always much easier reason with and test when each function does one thing.

Collapse
 
flrnd profile image
Florian Rand

Thanks Orlando!