Go language + MySQL REST API: CRUD example.
In this article, we will learn how to create a RESTful API using Go language and MySQL database. We will implement CRUD (Create, Read, Update, Delete) operations for a simple "users" table in the MySQL database.
Prerequisites:
Go language installed...
techwasti.com5 min read
Matt D
Senior Software Engineer
The Scan also errors when database values are null. Instead the struct should have sql.NullString instead of string type.