1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
package dialect type Name int func (n Name) String() string { switch n { case PG: return "pg" case SQLite: return "sqlite" case MySQL: return "mysql" default: return "invalid" } } const ( Invalid Name = iota PG SQLite MySQL )