Skip to content

Instantly share code, notes, and snippets.

@rsudip90
rsudip90 / nullHandle.go
Last active September 5, 2024 15:29
How I handled the null possible value in a sql database row in golang?
package main
import (
"database/sql"
"encoding/json"
"fmt"
"reflect"
"time"
"github.com/go-sql-driver/mysql"