Documentation ¶
Index ¶
Constants ¶
View Source
const ( Unknown = "Unknown" CodeUnknown = "XX" )
Variables ¶
View Source
var Bytes []byte
View Source
var (
ErrCountryNotFound = errors.New("Country not found")
)
Functions ¶
Types ¶
type CountryInt32 ¶
type CountryInt32 string
CountryInt32 is a tpye that store a 2-letters country code as an int32. The goal is to have more efficient database operations than using the a basic TEXT
func (*CountryInt32) Scan ¶
func (country *CountryInt32) Scan(src interface{}) (err error)
Scan implements sql.Scanner so CountryInt32 can be read from databases transparently.
Click to show internal directories.
Click to hide internal directories.