Skip to content

Commit db3d581

Browse files
Remove pq.NullTime mention from time docs (#713)
This was changed in #182 Co-authored-by: Kyle Conroy <kyle@conroy.org>
1 parent a2a4403 commit db3d581

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/time.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,20 @@ CREATE TABLE authors (
99
```
1010

1111
All PostgreSQL time and date types are returned as `time.Time` structs. For
12-
null time or date values, the `NullTime` type is used from the
13-
`github.com/lib/pq` package.
12+
null time or date values, the `NullTime` type from `database/sql` is used.
1413

1514
```go
1615
package db
1716

1817
import (
1918
"time"
20-
21-
"github.com/lib/pq"
19+
"database/sql"
2220
)
2321

2422
type Author struct {
2523
ID int
2624
CreatedAt time.Time
27-
UpdatedAt pq.NullTime
25+
UpdatedAt sql.NullTime
2826
}
2927
```
3028

0 commit comments

Comments
 (0)