Fix go module path

This commit is contained in:
Brian Picciano 2023-10-28 10:03:51 +02:00
parent ba2d581975
commit b02115e390
19 changed files with 40 additions and 40 deletions

View File

@ -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() {

View File

@ -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"

View File

@ -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"
)

View File

@ -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 {

View File

@ -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"
)

View File

@ -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"
)

View File

@ -1,4 +1,4 @@
module github.com/mediocregopher/blog.mediocregopher.com/srv
module code.betamike.com/mediocregopher/mediocre-blog/src
go 1.16

View File

@ -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 {

View File

@ -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"
)

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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

View File

@ -7,7 +7,7 @@ import (
"fmt"
"io"
"github.com/mediocregopher/blog.mediocregopher.com/srv/post"
"code.betamike.com/mediocregopher/mediocre-blog/src/post"
)
var (

View File

@ -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"
)

View File

@ -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