style: go fmt and goimports

This commit is contained in:
Dan Anglin 2021-09-15 05:51:22 +01:00
parent e70d7c5611
commit 7d97ed4834
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
4 changed files with 7 additions and 6 deletions

2
db.go
View file

@ -205,7 +205,7 @@ func loadCard(db *bolt.DB, id int) (Card, error) {
var card Card
bucket := []byte(cardBucket)
err := db.View(func(tx *bolt.Tx)error {
err := db.View(func(tx *bolt.Tx) error {
b := tx.Bucket(bucket)
if b == nil {

View file

@ -64,7 +64,7 @@ func TestDbDefaultPath(t *testing.T) {
if got != want {
t.Errorf("Got unexpected database path: want %s, got %s", want, got)
} else {
} else {
t.Logf("Got expected database path: got %s", got)
}
}

View file

@ -9,7 +9,7 @@ type Status struct {
// Card represents a card on a Kanban board
type Card struct {
Id int
Title string
Content string
Id int
Title string
Content string
}

View file

@ -1,4 +1,5 @@
//+build mage
//go:build mage
// +build mage
package main