Shuffle around package directories

This commit is contained in:
Noah 2018-02-09 18:46:58 -08:00
parent 3b3295884c
commit 3d5147ff4c
31 changed files with 38 additions and 38 deletions

View File

@ -10,7 +10,7 @@ import (
"os"
"github.com/kirsle/blog/core"
"github.com/kirsle/blog/core/jsondb"
"github.com/kirsle/blog/jsondb"
)
// Build-time config constants.

View File

@ -16,7 +16,7 @@ import (
"time"
"github.com/google/uuid"
"github.com/kirsle/blog/core/jsondb"
"github.com/kirsle/blog/jsondb"
"github.com/kirsle/blog/core/models/comments"
"github.com/kirsle/blog/core/models/posts"
"github.com/kirsle/golog"

View File

@ -11,10 +11,10 @@ import (
"strings"
"github.com/gorilla/mux"
"github.com/kirsle/blog/core/caches/null"
"github.com/kirsle/blog/core/caches/redis"
"github.com/kirsle/blog/core/forms"
"github.com/kirsle/blog/core/models/settings"
"github.com/kirsle/blog/jsondb/caches/null"
"github.com/kirsle/blog/jsondb/caches/redis"
"github.com/kirsle/blog/core/internal/forms"
"github.com/kirsle/blog/core/internal/models/settings"
"github.com/urfave/negroni"
)

View File

@ -7,14 +7,14 @@ import (
"github.com/gorilla/mux"
"github.com/gorilla/sessions"
"github.com/kirsle/blog/core/caches"
"github.com/kirsle/blog/core/caches/null"
"github.com/kirsle/blog/core/caches/redis"
"github.com/kirsle/blog/core/jsondb"
"github.com/kirsle/blog/core/models/comments"
"github.com/kirsle/blog/core/models/posts"
"github.com/kirsle/blog/core/models/settings"
"github.com/kirsle/blog/core/models/users"
"github.com/kirsle/blog/jsondb/caches"
"github.com/kirsle/blog/jsondb/caches/null"
"github.com/kirsle/blog/jsondb/caches/redis"
"github.com/kirsle/blog/jsondb"
"github.com/kirsle/blog/core/internal/models/comments"
"github.com/kirsle/blog/core/internal/models/posts"
"github.com/kirsle/blog/core/internal/models/settings"
"github.com/kirsle/blog/core/internal/models/users"
"github.com/shurcooL/github_flavored_markdown/gfmstyle"
"github.com/urfave/negroni"
)

View File

@ -5,8 +5,8 @@ import (
"net/http"
"github.com/gorilla/mux"
"github.com/kirsle/blog/core/forms"
"github.com/kirsle/blog/core/models/users"
"github.com/kirsle/blog/core/internal/forms"
"github.com/kirsle/blog/core/internal/models/users"
)
// AuthRoutes attaches the auth routes to the app.

View File

@ -13,10 +13,10 @@ import (
"github.com/gorilla/feeds"
"github.com/gorilla/mux"
"github.com/kirsle/blog/core/models/comments"
"github.com/kirsle/blog/core/models/posts"
"github.com/kirsle/blog/core/models/settings"
"github.com/kirsle/blog/core/models/users"
"github.com/kirsle/blog/core/internal/models/comments"
"github.com/kirsle/blog/core/internal/models/posts"
"github.com/kirsle/blog/core/internal/models/settings"
"github.com/kirsle/blog/core/internal/models/users"
"github.com/urfave/negroni"
)

View File

@ -11,8 +11,8 @@ import (
"github.com/google/uuid"
"github.com/gorilla/mux"
"github.com/gorilla/sessions"
"github.com/kirsle/blog/core/models/comments"
"github.com/kirsle/blog/core/models/users"
"github.com/kirsle/blog/core/internal/models/comments"
"github.com/kirsle/blog/core/internal/models/users"
)
// CommentRoutes attaches the comment routes to the app.

View File

@ -9,8 +9,8 @@ import (
"time"
"github.com/gorilla/mux"
"github.com/kirsle/blog/core/forms"
"github.com/kirsle/blog/core/models/settings"
"github.com/kirsle/blog/core/internal/forms"
"github.com/kirsle/blog/core/internal/models/settings"
)
// ContactRoutes attaches the contact URL to the app.

View File

@ -4,9 +4,9 @@ import (
"net/http"
"github.com/gorilla/sessions"
"github.com/kirsle/blog/core/forms"
"github.com/kirsle/blog/core/models/settings"
"github.com/kirsle/blog/core/models/users"
"github.com/kirsle/blog/core/internal/forms"
"github.com/kirsle/blog/core/internal/models/settings"
"github.com/kirsle/blog/core/internal/models/users"
)
// SetupHandler is the initial blog setup route.

View File

@ -11,7 +11,7 @@ import (
"time"
"github.com/google/uuid"
"github.com/kirsle/blog/core/jsondb"
"github.com/kirsle/blog/jsondb"
"github.com/kirsle/golog"
)

View File

@ -9,7 +9,7 @@ import (
"strings"
"time"
"github.com/kirsle/blog/core/jsondb"
"github.com/kirsle/blog/jsondb"
"github.com/kirsle/golog"
)

View File

@ -4,7 +4,7 @@ import (
"crypto/rand"
"encoding/base64"
"github.com/kirsle/blog/core/jsondb"
"github.com/kirsle/blog/jsondb"
)
// DB is a reference to the parent app's JsonDB object.

View File

@ -6,7 +6,7 @@ import (
"strconv"
"strings"
"github.com/kirsle/blog/core/jsondb"
"github.com/kirsle/blog/jsondb"
"golang.org/x/crypto/bcrypt"
)

View File

@ -8,8 +8,8 @@ import (
"net/url"
"strings"
"github.com/kirsle/blog/core/models/comments"
"github.com/kirsle/blog/core/models/settings"
"github.com/kirsle/blog/core/internal/models/comments"
"github.com/kirsle/blog/core/internal/models/settings"
"github.com/microcosm-cc/bluemonday"
gomail "gopkg.in/gomail.v2"
)

View File

@ -8,7 +8,7 @@ import (
"github.com/google/uuid"
"github.com/gorilla/sessions"
"github.com/kirsle/blog/core/models/users"
"github.com/kirsle/blog/core/internal/models/users"
)
type key int

View File

@ -7,9 +7,9 @@ import (
"strings"
"time"
"github.com/kirsle/blog/core/forms"
"github.com/kirsle/blog/core/models/settings"
"github.com/kirsle/blog/core/models/users"
"github.com/kirsle/blog/core/internal/forms"
"github.com/kirsle/blog/core/internal/models/settings"
"github.com/kirsle/blog/core/internal/models/users"
)
// Vars is an interface to implement by the templates to pass their own custom

View File

@ -12,7 +12,7 @@ import (
"sync"
"time"
"github.com/kirsle/blog/core/caches"
"github.com/kirsle/blog/jsondb/caches"
)
var (