Skip to content

Commit 270fcc5

Browse files
authored
docs: add clarity and reference to JSON tags (#2819)
* docs: add clarity and reference to JSON tags * Update docs/howto/structs.md Added a link to the configuration reference on the JSON tags session. * fix(docs): link to configuration reference
1 parent 89d8cff commit 270fcc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/howto/structs.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ CREATE TABLE authors (
3131
);
3232
```
3333

34-
sqlc can generate structs with JSON tags. The JSON name for a field matches
34+
sqlc can generate structs with JSON tags by adding the `emit_json_tags` key to the configuration file as it shows on [configuration reference](../reference/config.md).
35+
The JSON name for a field matches
3536
the column name in the database.
3637

3738
```go

0 commit comments

Comments
 (0)