gofmt
the build was successful Details

This commit is contained in:
konrad 2017-11-21 11:40:07 +01:00 committed by kolaente
parent 0d63ab8826
commit 6fbc820db9
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
4 changed files with 6 additions and 6 deletions

View File

@ -28,7 +28,7 @@
<router-link to="/authors/add" class="ui green labeled icon button" style="float: right;">
<i class="plus icon"></i>
Add a author
Add a new author
</router-link>
<button @click="loadAuthors()" class="ui teal labeled icon button" style="float: right;">

View File

@ -36,7 +36,7 @@ func AddOrUpdateBook(book Book) (newBook Book, err error) {
}
if !exists {
newPublisher, err := AddPublisher(Publisher{Name:book.PublisherFull.Name})
newPublisher, err := AddPublisher(Publisher{Name: book.PublisherFull.Name})
if err != nil {
return Book{}, err
}
@ -70,7 +70,7 @@ func AddOrUpdateBook(book Book) (newBook Book, err error) {
}
// Delete all (maybe) previously existing author relations
x.Delete(AuthorBook{BookID:book.ID})
x.Delete(AuthorBook{BookID: book.ID})
// Take the authors, look if they exist, if they don't create them
authorBookRelation := make([]AuthorBook, 0)

View File

@ -2,11 +2,11 @@ package v1
import (
"encoding/json"
"fmt"
"git.mowie.cc/konrad/Library/models"
"github.com/labstack/echo"
"net/http"
"strings"
"fmt"
)
type authorPayload struct {

View File

@ -1,13 +1,13 @@
package routes
import (
"crypto/md5"
"encoding/hex"
"git.mowie.cc/konrad/Library/models"
"github.com/dgrijalva/jwt-go"
"github.com/labstack/echo"
"net/http"
"time"
"crypto/md5"
"encoding/hex"
)
// Login is the login handler