We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d7157a commit 5c75524Copy full SHA for 5c75524
database/pgComment.go
@@ -10,6 +10,11 @@ import (
10
func MakeComments(ctx context.Context, sc SchemeCommenter, models ...interface{}) error {
11
for _, model := range models {
12
modelType := reflect.TypeOf(model)
13
+
14
+ if reflect.ValueOf(model).Kind() == reflect.Ptr {
15
+ modelType = modelType.Elem()
16
+ }
17
18
var tableName string
19
20
for i := 0; i < modelType.NumField(); i++ {
0 commit comments