diff options
| author | Felix Hanley <felix@userspace.com.au> | 2020-03-14 11:01:31 +0000 |
|---|---|---|
| committer | Felix Hanley <felix@userspace.com.au> | 2020-03-14 11:01:31 +0000 |
| commit | 9bf2e51a5a4018c84e4a61d76cbded7b7aa114db (patch) | |
| tree | 9826dd6885b645b1c483af82d07b439ea00e5a12 /store | |
| parent | e345d142136c1416e73dc0f5dc9993af785d845b (diff) | |
| download | sws-9bf2e51a5a4018c84e4a61d76cbded7b7aa114db.tar.gz sws-9bf2e51a5a4018c84e4a61d76cbded7b7aa114db.tar.bz2 | |
Add initial country code collection and map display
Diffstat (limited to 'store')
| -rw-r--r-- | store/sqlite3.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/store/sqlite3.go b/store/sqlite3.go index 631fde2..1102f9d 100644 --- a/store/sqlite3.go +++ b/store/sqlite3.go @@ -15,7 +15,10 @@ type Sqlite3 struct { func NewSqlite3Store(db *sqlx.DB) *Sqlite3 { //db.Mapper = reflectx.NewMapperFunc("json", strings.ToLower) - return &Sqlite3{db} + out := &Sqlite3{ + db: db, + } + return out } func (s *Sqlite3) GetSites() ([]*sws.Site, error) { |
