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...
Markdown supported · ⌘↵ to post
Maheshwar Ligade
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.