Browse Source

go ptr

main
LinsRuis.HW1 3 months ago
parent
commit
e0486738fd
  1. 3
      pkg/language/golang.go

3
pkg/language/golang.go

@ -111,6 +111,9 @@ func (g *GoLanguage) TypeString(col *schemas.Column) string {
if s == "[]uint8" { if s == "[]uint8" {
return "[]byte" return "[]byte"
} }
if strings.Contains(col.Comment, "IsGoPtr") {
s = "*" + s
}
return s return s
} }

Loading…
Cancel
Save