10000
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 b85bf01 commit b111288Copy full SHA for b111288
src/server/templates/go.ts
@@ -275,13 +275,13 @@ const GO_TYPE_MAP = {
275
type GoType = (typeof GO_TYPE_MAP)[keyof typeof GO_TYPE_MAP]
276
277
const GO_NULLABLE_TYPE_MAP: Record<GoType, string> = {
278
- string: 'sql.NullString',
279
- bool: 'sql.NullBool',
280
- int16: 'sql.NullInt32',
281
- int32: 'sql.NullInt32',
282
- int64: 'sql.NullInt64',
283
- float32: 'sql.NullFloat64',
284
- float64: 'sql.NullFloat64',
+ string: '*string',
+ bool: '*bool',
+ int16: '*int16',
+ int32: '*int32',
+ int64: '*int64',
+ float32: '*float32',
+ float64: '*float64',
285
'[]byte': '[]byte',
286
'interface{}': 'interface{}',
287
'map[string]interface{}': 'map[string]interface{}',
0 commit comments