---
title: "Comment by Matt D on \"Go language + MySQL REST API: CRUD example.\" | Hashnode"
description: "The Scan also errors when database values are null. Instead the struct should have sql.NullString instead of string type."
url: "https://hashnode.com/posts/go-language-mysql-rest-api-crud-example/6438160b8363bb9a3b25421c/comment/661104ac57fd5b16eda5f421"
---

[Discussion](https://hashnode.com/posts/go-language-mysql-rest-api-crud-example/6438160b8363bb9a3b25421c)

Comment [Go language + MySQL REST API: CRUD example.](https://hashnode.com/posts/go-language-mysql-rest-api-crud-example/6438160b8363bb9a3b25421c)

[Matt D](https://hashnode.com/@drummy)

[Apr 6, 2024](https://hashnode.com/posts/go-language-mysql-rest-api-crud-example/6438160b8363bb9a3b25421c/comment/661104ac57fd5b16eda5f421)

The Scan also errors when database values are null. Instead the struct should have sql.NullString instead of string type.

[Maheshwar Ligade](https://hashnode.com/@maheshwarligade)

[Apr 6, 2024](https://hashnode.com/posts/go-language-mysql-rest-api-crud-example/6438160b8363bb9a3b25421c/comment/661104ac57fd5b16eda5f421#reply-661132fbaa89503bc9974886)

Thank you, changes done
