Fix go module path
This commit is contained in:
parent
ba2d581975
commit
b02115e390
@ -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() {
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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 {
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -1,4 +1,4 @@
|
||||
module github.com/mediocregopher/blog.mediocregopher.com/srv
|
||||
module code.betamike.com/mediocregopher/mediocre-blog/src
|
||||
|
||||
go 1.16
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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"
|
||||
)
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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"
|
||||
)
|
||||
|
||||
|
@ -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
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/mediocregopher/blog.mediocregopher.com/srv/post"
|
||||
"code.betamike.com/mediocregopher/mediocre-blog/src/post"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -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"
|
||||
)
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user