The spxscan
package was inspired by pgxscan and provides similar functionality. Package spxscan allows scanning data into Go structs and other composite types, when working with the spanner package.
First, get the package by running:
go get github.com/cccteam/spxscan