From 28584184b15eb22c8623d3539d2e175c28404bb2 Mon Sep 17 00:00:00 2001 From: Jannis Mattheis Date: Sun, 11 Feb 2018 12:11:09 +0100 Subject: [PATCH] Formatting --- api/message.go | 2 +- model/user.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/message.go b/api/message.go index b06a7d6..86770d1 100644 --- a/api/message.go +++ b/api/message.go @@ -29,7 +29,7 @@ type Notifier interface { // The MessageAPI provides handlers for managing messages. type MessageAPI struct { - DB MessageDatabase + DB MessageDatabase Notifier Notifier } diff --git a/model/user.go b/model/user.go index 7e8786f..769aef6 100644 --- a/model/user.go +++ b/model/user.go @@ -2,7 +2,7 @@ package model // The User holds information about the credentials of a user and its application and client tokens. type User struct { - ID uint `gorm:"primary_key;unique_index;AUTO_INCREMENT"` + ID uint `gorm:"primary_key;unique_index;AUTO_INCREMENT"` Name string `gorm:"unique_index"` Pass []byte Admin bool