Go Best Practices

Best Practices focused on Go. Idiomatic Go practices and patterns.

1 post

GO-001 Prefer Table-Driven Tests Testing

Express related test-cases as data to keep tests readable and exhaustive, and compare the results using full-structure comparison.

Table-driven tests express each case as a row of data, keeping intent obvious and making it cheap to add cases.