Skip to content

Commit

Permalink
ensure that dialect structs comply with interface
Browse files Browse the repository at this point in the history
  • Loading branch information
James Cooper committed May 19, 2014
1 parent 096714f commit 325f5a7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gorp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ import (
"time"
)

// verify interface compliance
var _ Dialect = SqliteDialect{}
var _ Dialect = PostgresDialect{}
var _ Dialect = MySQLDialect{}
var _ Dialect = SqlServerDialect{}
var _ Dialect = OracleDialect{}

type Invoice struct {
Id int64
Created int64
Expand Down

0 comments on commit 325f5a7

Please sign in to comment.