7. Creating a Data Service

“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.”

Martin Fowler

When people talk about database access, certain programming languages seem to automatically be part of the vernacular. Everyone just assumes that Java and C# can talk to virtually any database out there, and if they can’t, you probably didn’t need that database anyway.

We have actually had people ask us, “Can Go talk to a database?” without a hint of irony. Somewhere out on the Internet there lies a conspiracy to convince people that Go is useful for little more than command-line utilities and specialized tasks, and that you should leave the “real work” to other languages.

We couldn’t disagree ...

Get Cloud Native Go: Building Web Applications and Microservices for the Cloud with Go and React now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.