go fmt
This commit is contained in:
parent
a262b66dda
commit
53150466a6
2 changed files with 6 additions and 6 deletions
10
trantor.go
10
trantor.go
|
@ -72,12 +72,12 @@ func fileHandler(path string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
type indexData struct {
|
type indexData struct {
|
||||||
S Status
|
S Status
|
||||||
Books []Book
|
Books []Book
|
||||||
VisitedBooks []Book
|
VisitedBooks []Book
|
||||||
DownloadedBooks []Book
|
DownloadedBooks []Book
|
||||||
Count int
|
Count int
|
||||||
Tags []string
|
Tags []string
|
||||||
}
|
}
|
||||||
|
|
||||||
func indexHandler(w http.ResponseWriter, r *http.Request) {
|
func indexHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
|
@ -2,13 +2,13 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.gitorious.org/go-pkg/epub.git"
|
"git.gitorious.org/go-pkg/epub.git"
|
||||||
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"log"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func storePath(name string) string {
|
func storePath(name string) string {
|
||||||
|
|
Reference in a new issue