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 package main
import log "github.com/cihub/seelog"
import ( import (
log "github.com/cihub/seelog"
"net/http" "net/http"
"strconv" "strconv"
"strings" "strings"

View file

@ -1,22 +1,24 @@
package main package main
import log "github.com/cihub/seelog"
import _ "image/png"
import _ "image/jpeg"
import _ "image/gif"
import ( import (
_ "image/gif"
_ "image/jpeg"
_ "image/png"
log "github.com/cihub/seelog"
"bytes" "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"
"image/jpeg" "image/jpeg"
"io" "io"
"io/ioutil" "io/ioutil"
"regexp" "regexp"
"strings" "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) { func coverHandler(h handler) {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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