7 lines
126 B
Go
7 lines
126 B
Go
|
var name sql.NullString
|
||
|
db.ExecContext(
|
||
|
ctx,
|
||
|
"INSERT INTO users(name) VALUES(@name)"),
|
||
|
sql.Named("name", name),
|
||
|
)
|