Documentation.

This commit is contained in:
Nuno Cruces
2023-02-22 17:51:30 +00:00
parent e91758c6a4
commit 71ae26e5c9
4 changed files with 45 additions and 30 deletions

View File

@@ -8,7 +8,7 @@ import (
// Convert a string in [time.RFC3339Nano] format into a [time.Time]
// if it roundtrips back to the same string.
// This way times can be persisted to, and recovered from, the database,
// but if a string is needed, [database.sql] will recover the same string.
// but if a string is needed, [database/sql] will recover the same string.
func maybeDate(text string) driver.Value {
// Weed out (some) values that can't possibly be
// [time.RFC3339Nano] timestamps.