Skip to content

Commit 75b9799

Browse files
committed
Format source code
1 parent 7d9eed4 commit 75b9799

24 files changed

+20
-29
lines changed

ftp/fileinfo.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package ftp
33
import (
44
"os"
55
"time"
6-
76
"xarantolus/sensibleHub/store"
87
"xarantolus/sensibleHub/store/music"
98
)

ftp/musicdriver.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"path/filepath"
1010
"sort"
1111
"strings"
12+
"xarantolus/sensibleHub/store"
1213

1314
"goftp.io/server"
14-
"xarantolus/sensibleHub/store"
1515
)
1616

1717
var (

ftp/musicfactory.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package ftp
22

33
import (
44
"strings"
5+
"xarantolus/sensibleHub/store"
56

67
"goftp.io/server"
7-
"xarantolus/sensibleHub/store"
88
)
99

1010
// musicDriverFactory is the ftp driver factory for this program.

ftp/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"crypto/subtle"
55
"fmt"
66
"log"
7+
"xarantolus/sensibleHub/store/config"
78

89
"goftp.io/server"
9-
"xarantolus/sensibleHub/store/config"
1010
)
1111

1212
// RunServer runs the FTP server until it crashes

l

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
golangci-lint run --enable-all --disable nestif,nlreturn,noctx,testpackage,godot,goerr113,gomnd,stylecheck,goimports,gochecknoglobals,unparam,lll,nakedret,goconst,golint,wsl,gochecknoinits,scopelint,funlen,prealloc,gocognit,ineffassign,gocyclo
1+
golangci-lint run --enable-all --disable errorlint,paralleltest,wrapcheck,exhaustivestruct,nestif,nlreturn,noctx,testpackage,godot,goerr113,gomnd,stylecheck,goimports,gochecknoglobals,unparam,lll,nakedret,goconst,golint,wsl,gochecknoinits,scopelint,funlen,prealloc,gocognit,ineffassign,gocyclo

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import (
99
_ "image/png"
1010
"log"
1111
"os/exec"
12-
13-
_ "golang.org/x/image/webp"
1412
"xarantolus/sensibleHub/ftp"
1513
"xarantolus/sensibleHub/store"
1614
"xarantolus/sensibleHub/store/config"
1715
"xarantolus/sensibleHub/web"
16+
17+
_ "golang.org/x/image/webp"
1818
)
1919

2020
var flagDebug = flag.Bool("debug", false, "Start the server in debug mode")

store/album.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package store
33
import (
44
"sort"
55
"strings"
6-
76
"xarantolus/sensibleHub/store/music"
87
)
98

store/delete.go

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"fmt"
55
"os"
66
"time"
7-
87
"xarantolus/sensibleHub/store/music"
98
)
109

store/edit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"strconv"
1010
"strings"
1111
"time"
12+
"xarantolus/sensibleHub/store/music"
1213

1314
"github.com/vitali-fedulov/images"
14-
"xarantolus/sensibleHub/store/music"
1515
)
1616

1717
// ErrAudioSameStartEnd is returned while editing a song if the Start and End properties are

store/import.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import (
1111
"strconv"
1212
"strings"
1313
"time"
14+
"xarantolus/sensibleHub/store/music"
1415

1516
"github.com/bogem/id3v2"
1617
"github.com/vitali-fedulov/images"
17-
"xarantolus/sensibleHub/store/music"
1818
)
1919

2020
// ImportFiles imports files from the given directory. It tries to get as much metadata as possible

store/manager.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import (
1212
"strings"
1313
"sync"
1414
"time"
15-
16-
"github.com/gorilla/websocket"
1715
"xarantolus/sensibleHub/store/config"
1816
"xarantolus/sensibleHub/store/music"
17+
18+
"github.com/gorilla/websocket"
1919
)
2020

2121
const (

store/manager_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"net/url"
55
"sync"
66
"testing"
7-
87
"xarantolus/sensibleHub/store/music"
98
)
109

store/music/mp3.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import (
1212
"path/filepath"
1313
"strconv"
1414
"strings"
15+
"xarantolus/sensibleHub/store/config"
1516

1617
"github.com/nfnt/resize"
1718
"golang.org/x/sync/singleflight"
18-
"xarantolus/sensibleHub/store/config"
1919
)
2020

2121
var mp3Group singleflight.Group

store/related.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package store
33
import (
44
"sort"
55
"strings"
6-
76
"xarantolus/sensibleHub/store/music"
87
)
98

store/search.go

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"sort"
66
"strings"
77
"unicode"
8-
98
"xarantolus/sensibleHub/store/music"
109
)
1110

store/sort.go

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"strconv"
99
"strings"
1010
"time"
11-
1211
"xarantolus/sensibleHub/store/music"
1312
)
1413

web/listings.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ package web
33
import (
44
"fmt"
55
"net/http"
6-
7-
"github.com/gorilla/mux"
86
"xarantolus/sensibleHub/store"
97
"xarantolus/sensibleHub/store/music"
8+
9+
"github.com/gorilla/mux"
1010
)
1111

1212
// Listing defines a listing of grouped songs

web/routes.go

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package web
22

33
import (
44
"net/http"
5-
65
"xarantolus/sensibleHub/store"
76
"xarantolus/sensibleHub/store/music"
87
)

web/server.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"log"
55
"net/http"
66
"strconv"
7-
8-
"github.com/gorilla/mux"
97
"xarantolus/sensibleHub/store"
108
"xarantolus/sensibleHub/store/config"
9+
10+
"github.com/gorilla/mux"
1111
)
1212

1313
var debug bool

web/socket.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package web
33
import (
44
"net/http"
55
"sync"
6+
"xarantolus/sensibleHub/store"
67

78
"github.com/gorilla/websocket"
8-
"xarantolus/sensibleHub/store"
99
)
1010

1111
var upgrader = websocket.Upgrader{

web/song.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ package web
22

33
import (
44
"net/http"
5-
6-
"github.com/gorilla/mux"
75
"xarantolus/sensibleHub/store"
86
"xarantolus/sensibleHub/store/music"
7+
8+
"github.com/gorilla/mux"
99
)
1010

1111
type songPage struct {

web/songdata.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"path/filepath"
1010
"strconv"
1111
"strings"
12+
"xarantolus/sensibleHub/store"
1213

1314
"github.com/gorilla/mux"
14-
"xarantolus/sensibleHub/store"
1515
)
1616

1717
// HandleCover displays the cover image for the song with the `songID` given in the URL.

web/submit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"encoding/json"
55
"net/http"
66
"strings"
7+
"xarantolus/sensibleHub/store"
78

89
"github.com/gorilla/mux"
9-
"xarantolus/sensibleHub/store"
1010
)
1111

1212
type addAccept struct {

web/templates.go

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"html/template"
55
"net/http"
66
"strings"
7-
87
"xarantolus/sensibleHub/store"
98
)
109

0 commit comments

Comments
 (0)