![database/sql: the Null* types naively/prematurely set .Valid=true before converting and scanning data · Issue #45662 · golang/go · GitHub database/sql: the Null* types naively/prematurely set .Valid=true before converting and scanning data · Issue #45662 · golang/go · GitHub](https://user-images.githubusercontent.com/4898263/115606657-d78cf500-a298-11eb-92cc-99e4fe5902c2.png)
database/sql: the Null* types naively/prematurely set .Valid=true before converting and scanning data · Issue #45662 · golang/go · GitHub
![Jon Calhoun on Twitter: "As far as I am aware, in #golang the only way to mock out something like sql.DB is to wrap the sql.DB type in a custom type that Jon Calhoun on Twitter: "As far as I am aware, in #golang the only way to mock out something like sql.DB is to wrap the sql.DB type in a custom type that](https://pbs.twimg.com/media/EsHPbLmXIAU9sts.jpg)
Jon Calhoun on Twitter: "As far as I am aware, in #golang the only way to mock out something like sql.DB is to wrap the sql.DB type in a custom type that
![This blog is about embedding in Go language (which many, including me, refer to as “Golang,” because of its domain name, golang.org) and the various ways to do it. This blog is about embedding in Go language (which many, including me, refer to as “Golang,” because of its domain name, golang.org) and the various ways to do it.](https://octo.vmware.com/wp-content/uploads/sites/18/2021/07/trivia-2-1024x407.png)