View definition

type TypeConverter

Defined in github.com/go-gorp/gorp/gorp.go

Description

The TypeConverter interface provides a way to map a value of one type to another type when persisting to, or loading from, a database.

Example use cases: Implement type converter to convert bool types to "y"/"n" strings, or serialize a struct member as a JSON blob.

TypeConverter is referenced in 2 repositories

github.com/go-gorp/gorp github.com/kihamo/shadow