summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmd/hash-password/main.go2
-rw-r--r--src/cmd/load-test-data/main.go6
-rw-r--r--src/cmd/mediocre-blog/main.go12
-rw-r--r--src/gmi/cache.go2
-rw-r--r--src/gmi/gmi.go8
-rw-r--r--src/gmi/tpl.go2
-rw-r--r--src/go.mod2
-rw-r--r--src/http/assets.go4
-rw-r--r--src/http/auth.go2
-rw-r--r--src/http/csrf.go2
-rw-r--r--src/http/drafts.go4
-rw-r--r--src/http/feed.go4
-rw-r--r--src/http/http.go10
-rw-r--r--src/http/middleware.go4
-rw-r--r--src/http/posts.go8
-rw-r--r--src/http/tpl.go2
-rw-r--r--src/post/asset/asset.go2
-rw-r--r--src/post/asset/asset_test.go2
-rw-r--r--src/post/sql.go2
19 files changed, 40 insertions, 40 deletions
diff --git a/src/cmd/hash-password/main.go b/src/cmd/hash-password/main.go
index 47ae1e7..550509f 100644
--- a/src/cmd/hash-password/main.go
+++ b/src/cmd/hash-password/main.go
@@ -6,7 +6,7 @@ import (
"os"
"strings"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/http"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/http"
)
func main() {
diff --git a/src/cmd/load-test-data/main.go b/src/cmd/load-test-data/main.go
index 850b9fd..79b9970 100644
--- a/src/cmd/load-test-data/main.go
+++ b/src/cmd/load-test-data/main.go
@@ -7,9 +7,9 @@ import (
"path/filepath"
"time"
- cfgpkg "github.com/mediocregopher/blog.mediocregopher.com/srv/cfg"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/post"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/post/asset"
+ cfgpkg "code.betamike.com/mediocregopher/mediocre-blog/src/cfg"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/post"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/post/asset"
"github.com/mediocregopher/mediocre-go-lib/v2/mctx"
"github.com/mediocregopher/mediocre-go-lib/v2/mlog"
"gopkg.in/yaml.v3"
diff --git a/src/cmd/mediocre-blog/main.go b/src/cmd/mediocre-blog/main.go
index 71e6e7b..deba5c3 100644
--- a/src/cmd/mediocre-blog/main.go
+++ b/src/cmd/mediocre-blog/main.go
@@ -7,12 +7,12 @@ import (
"syscall"
"time"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/cache"
- cfgpkg "github.com/mediocregopher/blog.mediocregopher.com/srv/cfg"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/gmi"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/http"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/post"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/post/asset"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/cache"
+ cfgpkg "code.betamike.com/mediocregopher/mediocre-blog/src/cfg"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/gmi"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/http"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/post"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/post/asset"
"github.com/mediocregopher/mediocre-go-lib/v2/mctx"
"github.com/mediocregopher/mediocre-go-lib/v2/mlog"
)
diff --git a/src/gmi/cache.go b/src/gmi/cache.go
index 0f2e975..5a94aed 100644
--- a/src/gmi/cache.go
+++ b/src/gmi/cache.go
@@ -7,7 +7,7 @@ import (
"sync"
"git.sr.ht/~adnano/go-gemini"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/cache"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/cache"
)
type cacheRW struct {
diff --git a/src/gmi/gmi.go b/src/gmi/gmi.go
index e0c4626..74e17e9 100644
--- a/src/gmi/gmi.go
+++ b/src/gmi/gmi.go
@@ -16,10 +16,10 @@ import (
"git.sr.ht/~adnano/go-gemini"
"git.sr.ht/~adnano/go-gemini/certificate"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/cache"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/cfg"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/post"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/post/asset"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/cache"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/cfg"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/post"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/post/asset"
"github.com/mediocregopher/mediocre-go-lib/v2/mctx"
"github.com/mediocregopher/mediocre-go-lib/v2/mlog"
)
diff --git a/src/gmi/tpl.go b/src/gmi/tpl.go
index ae94bc6..b175a34 100644
--- a/src/gmi/tpl.go
+++ b/src/gmi/tpl.go
@@ -16,7 +16,7 @@ import (
"text/template"
"git.sr.ht/~adnano/go-gemini"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/post"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/post"
"github.com/mediocregopher/mediocre-go-lib/v2/mctx"
gmnhg "github.com/tdemin/gmnhg"
)
diff --git a/src/go.mod b/src/go.mod
index e70aac9..a8120e7 100644
--- a/src/go.mod
+++ b/src/go.mod
@@ -1,4 +1,4 @@
-module github.com/mediocregopher/blog.mediocregopher.com/srv
+module code.betamike.com/mediocregopher/mediocre-blog/src
go 1.16
diff --git a/src/http/assets.go b/src/http/assets.go
index 1a8f520..70653e0 100644
--- a/src/http/assets.go
+++ b/src/http/assets.go
@@ -9,8 +9,8 @@ import (
"strings"
"time"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/http/apiutil"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/post/asset"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/http/apiutil"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/post/asset"
)
func (a *api) managePostAssetsHandler() http.Handler {
diff --git a/src/http/auth.go b/src/http/auth.go
index 3ad026a..523ccd5 100644
--- a/src/http/auth.go
+++ b/src/http/auth.go
@@ -5,7 +5,7 @@ import (
"net/http"
"time"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/http/apiutil"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/http/apiutil"
"golang.org/x/crypto/bcrypt"
)
diff --git a/src/http/csrf.go b/src/http/csrf.go
index a64e37e..8606360 100644
--- a/src/http/csrf.go
+++ b/src/http/csrf.go
@@ -6,7 +6,7 @@ import (
"net/http"
"net/url"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/http/apiutil"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/http/apiutil"
)
func checkCSRF(r *http.Request, publicURL *url.URL) error {
diff --git a/src/http/drafts.go b/src/http/drafts.go
index 4b98bc8..90ad353 100644
--- a/src/http/drafts.go
+++ b/src/http/drafts.go
@@ -4,8 +4,8 @@ import (
"fmt"
"net/http"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/http/apiutil"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/post"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/http/apiutil"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/post"
)
func (a *api) manageDraftPostsHandler() http.Handler {
diff --git a/src/http/feed.go b/src/http/feed.go
index deaeb80..0472c27 100644
--- a/src/http/feed.go
+++ b/src/http/feed.go
@@ -5,8 +5,8 @@ import (
"net/http"
"github.com/gorilla/feeds"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/http/apiutil"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/post"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/http/apiutil"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/post"
)
func (a *api) renderFeedHandler() http.Handler {
diff --git a/src/http/http.go b/src/http/http.go
index 4b98d2b..7444e7c 100644
--- a/src/http/http.go
+++ b/src/http/http.go
@@ -15,11 +15,11 @@ import (
"strings"
"time"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/cache"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/cfg"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/http/apiutil"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/post"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/post/asset"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/cache"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/cfg"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/http/apiutil"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/post"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/post/asset"
"github.com/mediocregopher/mediocre-go-lib/v2/mctx"
"github.com/mediocregopher/mediocre-go-lib/v2/mlog"
)
diff --git a/src/http/middleware.go b/src/http/middleware.go
index a21511f..6611136 100644
--- a/src/http/middleware.go
+++ b/src/http/middleware.go
@@ -9,8 +9,8 @@ import (
"sync"
"time"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/cache"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/http/apiutil"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/cache"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/http/apiutil"
"github.com/mediocregopher/mediocre-go-lib/v2/mctx"
"github.com/mediocregopher/mediocre-go-lib/v2/mlog"
)
diff --git a/src/http/posts.go b/src/http/posts.go
index b1dbc35..4c1da56 100644
--- a/src/http/posts.go
+++ b/src/http/posts.go
@@ -15,10 +15,10 @@ import (
"github.com/gomarkdown/markdown"
"github.com/gomarkdown/markdown/html"
"github.com/gomarkdown/markdown/parser"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/gmi"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/http/apiutil"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/post"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/post/asset"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/gmi"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/http/apiutil"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/post"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/post/asset"
"github.com/mediocregopher/mediocre-go-lib/v2/mctx"
)
diff --git a/src/http/tpl.go b/src/http/tpl.go
index bb5750d..3f6b136 100644
--- a/src/http/tpl.go
+++ b/src/http/tpl.go
@@ -11,7 +11,7 @@ import (
"strings"
"time"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/http/apiutil"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/http/apiutil"
)
//go:embed tpl
diff --git a/src/post/asset/asset.go b/src/post/asset/asset.go
index d20b347..98acca9 100644
--- a/src/post/asset/asset.go
+++ b/src/post/asset/asset.go
@@ -7,7 +7,7 @@ import (
"fmt"
"io"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/post"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/post"
)
var (
diff --git a/src/post/asset/asset_test.go b/src/post/asset/asset_test.go
index 574cc08..88991b8 100644
--- a/src/post/asset/asset_test.go
+++ b/src/post/asset/asset_test.go
@@ -5,7 +5,7 @@ import (
"io"
"testing"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/post"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/post"
"github.com/stretchr/testify/assert"
)
diff --git a/src/post/sql.go b/src/post/sql.go
index 46c7b9a..8f4da0a 100644
--- a/src/post/sql.go
+++ b/src/post/sql.go
@@ -5,7 +5,7 @@ import (
"fmt"
"path"
- "github.com/mediocregopher/blog.mediocregopher.com/srv/cfg"
+ "code.betamike.com/mediocregopher/mediocre-blog/src/cfg"
migrate "github.com/rubenv/sql-migrate"
_ "github.com/mattn/go-sqlite3" // we need dis