Skip to content

Instantly share code, notes, and snippets.

View alingse's full-sized avatar
🐢
好好学习

alingse

🐢
好好学习
View GitHub Profile
@alingse
alingse / show_gorm_pluck_query.go
Created April 11, 2023 03:27
Show Gorm Pluck query on JSONType and JSONSlice
package main
import (
"context"
"database/sql"
"fmt"
"gorm.io/datatypes"
"gorm.io/driver/mysql"
"gorm.io/gorm"
@alingse
alingse / QueryJSONType.go
Created April 6, 2023 10:16
query for json type go
package main
import (
"context"
"database/sql"
"fmt"
"gorm.io/datatypes"
"gorm.io/driver/mysql"
"gorm.io/gorm"