Documentation, issue #45.

This commit is contained in:
Nuno Cruces
2023-12-22 02:45:26 +00:00
parent 89202629ec
commit 1ebdeed565
4 changed files with 8 additions and 5 deletions

View File

@@ -12,6 +12,7 @@ import (
// JSON returns a value that can be used as an argument to
// [database/sql.DB.Exec], [database/sql.Row.Scan] and similar methods to
// store value as JSON, or decode JSON into value.
// JSON should NOT be used with [BindJSON] or [ResultJSON].
func JSON(value any) any {
return jsonValue{value}
}