Normalize includes

This commit is contained in:
Las Zenow 2014-08-30 13:17:50 -05:00
parent 1a897cd1bd
commit 562bc157ee
17 changed files with 50 additions and 40 deletions

View file

@ -1,8 +1,8 @@
package main
import log "github.com/cihub/seelog"
import (
log "github.com/cihub/seelog"
"net/http"
"strconv"
"strings"

View file

@ -1,22 +1,24 @@
package main
import log "github.com/cihub/seelog"
import _ "image/png"
import _ "image/jpeg"
import _ "image/gif"
import (
_ "image/gif"
_ "image/jpeg"
_ "image/png"
log "github.com/cihub/seelog"
"bytes"
"git.gitorious.org/go-pkg/epubgo.git"
"git.gitorious.org/trantor/trantor.git/storage"
"github.com/gorilla/mux"
"github.com/nfnt/resize"
"image"
"image/jpeg"
"io"
"io/ioutil"
"regexp"
"strings"
"git.gitorious.org/go-pkg/epubgo.git"
"git.gitorious.org/trantor/trantor.git/storage"
"github.com/gorilla/mux"
"github.com/nfnt/resize"
)
func coverHandler(h handler) {

View file

@ -1,11 +1,12 @@
package database
import (
"strings"
"unicode"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
"gopkgs.com/unidecode.v1"
"strings"
"unicode"
)
const (

View file

@ -1,12 +1,13 @@
package database
import log "github.com/cihub/seelog"
import (
log "github.com/cihub/seelog"
"errors"
"os"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
"os"
)
const (

View file

@ -1,9 +1,10 @@
package database
import (
"time"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
"time"
)
const (

View file

@ -1,9 +1,10 @@
package database
import (
"time"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
"time"
)
const (

View file

@ -1,12 +1,13 @@
package database
import log "github.com/cihub/seelog"
import (
log "github.com/cihub/seelog"
"bytes"
"code.google.com/p/go.crypto/scrypt"
"crypto/rand"
"errors"
"code.google.com/p/go.crypto/scrypt"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
)

View file

@ -1,8 +1,8 @@
package main
import log "github.com/cihub/seelog"
import (
log "github.com/cihub/seelog"
"bytes"
"io"
"io/ioutil"

View file

@ -2,10 +2,11 @@ package main
import (
"encoding/hex"
"net/http"
"git.gitorious.org/trantor/trantor.git/database"
"github.com/gorilla/securecookie"
"github.com/gorilla/sessions"
"net/http"
)
var sesStore = sessions.NewCookieStore(securecookie.GenerateRandomKey(64))

View file

@ -1,8 +1,8 @@
package main
import log "github.com/cihub/seelog"
import (
log "github.com/cihub/seelog"
"net/http"
"strconv"
"strings"

View file

@ -1,8 +1,8 @@
package storage
import p "path"
import (
p "path"
"os"
)

View file

@ -1,8 +1,8 @@
package storage
import p "path"
import (
p "path"
"io"
"os"
)

View file

@ -1,10 +1,11 @@
package main
import log "github.com/cihub/seelog"
import (
"git.gitorious.org/trantor/trantor.git/database"
log "github.com/cihub/seelog"
"time"
"git.gitorious.org/trantor/trantor.git/database"
)
func InitTasks(db *database.DB) {

View file

@ -3,13 +3,14 @@ package main
import (
txt_tmpl "text/template"
"git.gitorious.org/trantor/trantor.git/database"
log "github.com/cihub/seelog"
"encoding/json"
"errors"
"html/template"
"net/http"
"git.gitorious.org/trantor/trantor.git/database"
)
type Status struct {

View file

@ -1,8 +1,8 @@
package main
import log "github.com/cihub/seelog"
import (
log "github.com/cihub/seelog"
"io"
"net/http"
"os"

View file

@ -1,8 +1,8 @@
package main
import log "github.com/cihub/seelog"
import (
log "github.com/cihub/seelog"
"bytes"
"crypto/rand"
"encoding/base64"

View file

@ -1,8 +1,8 @@
package main
import log "github.com/cihub/seelog"
import (
log "github.com/cihub/seelog"
"net/http"
)