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" "os"
"strings" "strings"
"github.com/mediocregopher/blog.mediocregopher.com/srv/http" "code.betamike.com/mediocregopher/mediocre-blog/src/http"
) )
func main() { func main() {

View File

@ -7,9 +7,9 @@ import (
"path/filepath" "path/filepath"
"time" "time"
cfgpkg "github.com/mediocregopher/blog.mediocregopher.com/srv/cfg" cfgpkg "code.betamike.com/mediocregopher/mediocre-blog/src/cfg"
"github.com/mediocregopher/blog.mediocregopher.com/srv/post" "code.betamike.com/mediocregopher/mediocre-blog/src/post"
"github.com/mediocregopher/blog.mediocregopher.com/srv/post/asset" "code.betamike.com/mediocregopher/mediocre-blog/src/post/asset"
"github.com/mediocregopher/mediocre-go-lib/v2/mctx" "github.com/mediocregopher/mediocre-go-lib/v2/mctx"
"github.com/mediocregopher/mediocre-go-lib/v2/mlog" "github.com/mediocregopher/mediocre-go-lib/v2/mlog"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"

View File

@ -7,12 +7,12 @@ import (
"syscall" "syscall"
"time" "time"
"github.com/mediocregopher/blog.mediocregopher.com/srv/cache" "code.betamike.com/mediocregopher/mediocre-blog/src/cache"
cfgpkg "github.com/mediocregopher/blog.mediocregopher.com/srv/cfg" cfgpkg "code.betamike.com/mediocregopher/mediocre-blog/src/cfg"
"github.com/mediocregopher/blog.mediocregopher.com/srv/gmi" "code.betamike.com/mediocregopher/mediocre-blog/src/gmi"
"github.com/mediocregopher/blog.mediocregopher.com/srv/http" "code.betamike.com/mediocregopher/mediocre-blog/src/http"
"github.com/mediocregopher/blog.mediocregopher.com/srv/post" "code.betamike.com/mediocregopher/mediocre-blog/src/post"
"github.com/mediocregopher/blog.mediocregopher.com/srv/post/asset" "code.betamike.com/mediocregopher/mediocre-blog/src/post/asset"
"github.com/mediocregopher/mediocre-go-lib/v2/mctx" "github.com/mediocregopher/mediocre-go-lib/v2/mctx"
"github.com/mediocregopher/mediocre-go-lib/v2/mlog" "github.com/mediocregopher/mediocre-go-lib/v2/mlog"
) )

View File

@ -7,7 +7,7 @@ import (
"sync" "sync"
"git.sr.ht/~adnano/go-gemini" "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 { type cacheRW struct {

View File

@ -16,10 +16,10 @@ import (
"git.sr.ht/~adnano/go-gemini" "git.sr.ht/~adnano/go-gemini"
"git.sr.ht/~adnano/go-gemini/certificate" "git.sr.ht/~adnano/go-gemini/certificate"
"github.com/mediocregopher/blog.mediocregopher.com/srv/cache" "code.betamike.com/mediocregopher/mediocre-blog/src/cache"
"github.com/mediocregopher/blog.mediocregopher.com/srv/cfg" "code.betamike.com/mediocregopher/mediocre-blog/src/cfg"
"github.com/mediocregopher/blog.mediocregopher.com/srv/post" "code.betamike.com/mediocregopher/mediocre-blog/src/post"
"github.com/mediocregopher/blog.mediocregopher.com/srv/post/asset" "code.betamike.com/mediocregopher/mediocre-blog/src/post/asset"
"github.com/mediocregopher/mediocre-go-lib/v2/mctx" "github.com/mediocregopher/mediocre-go-lib/v2/mctx"
"github.com/mediocregopher/mediocre-go-lib/v2/mlog" "github.com/mediocregopher/mediocre-go-lib/v2/mlog"
) )

View File

@ -16,7 +16,7 @@ import (
"text/template" "text/template"
"git.sr.ht/~adnano/go-gemini" "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" "github.com/mediocregopher/mediocre-go-lib/v2/mctx"
gmnhg "github.com/tdemin/gmnhg" 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 go 1.16

View File

@ -9,8 +9,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/mediocregopher/blog.mediocregopher.com/srv/http/apiutil" "code.betamike.com/mediocregopher/mediocre-blog/src/http/apiutil"
"github.com/mediocregopher/blog.mediocregopher.com/srv/post/asset" "code.betamike.com/mediocregopher/mediocre-blog/src/post/asset"
) )
func (a *api) managePostAssetsHandler() http.Handler { func (a *api) managePostAssetsHandler() http.Handler {

View File

@ -5,7 +5,7 @@ import (
"net/http" "net/http"
"time" "time"
"github.com/mediocregopher/blog.mediocregopher.com/srv/http/apiutil" "code.betamike.com/mediocregopher/mediocre-blog/src/http/apiutil"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
) )

View File

@ -6,7 +6,7 @@ import (
"net/http" "net/http"
"net/url" "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 { func checkCSRF(r *http.Request, publicURL *url.URL) error {

View File

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"github.com/mediocregopher/blog.mediocregopher.com/srv/http/apiutil" "code.betamike.com/mediocregopher/mediocre-blog/src/http/apiutil"
"github.com/mediocregopher/blog.mediocregopher.com/srv/post" "code.betamike.com/mediocregopher/mediocre-blog/src/post"
) )
func (a *api) manageDraftPostsHandler() http.Handler { func (a *api) manageDraftPostsHandler() http.Handler {

View File

@ -5,8 +5,8 @@ import (
"net/http" "net/http"
"github.com/gorilla/feeds" "github.com/gorilla/feeds"
"github.com/mediocregopher/blog.mediocregopher.com/srv/http/apiutil" "code.betamike.com/mediocregopher/mediocre-blog/src/http/apiutil"
"github.com/mediocregopher/blog.mediocregopher.com/srv/post" "code.betamike.com/mediocregopher/mediocre-blog/src/post"
) )
func (a *api) renderFeedHandler() http.Handler { func (a *api) renderFeedHandler() http.Handler {

View File

@ -15,11 +15,11 @@ import (
"strings" "strings"
"time" "time"
"github.com/mediocregopher/blog.mediocregopher.com/srv/cache" "code.betamike.com/mediocregopher/mediocre-blog/src/cache"
"github.com/mediocregopher/blog.mediocregopher.com/srv/cfg" "code.betamike.com/mediocregopher/mediocre-blog/src/cfg"
"github.com/mediocregopher/blog.mediocregopher.com/srv/http/apiutil" "code.betamike.com/mediocregopher/mediocre-blog/src/http/apiutil"
"github.com/mediocregopher/blog.mediocregopher.com/srv/post" "code.betamike.com/mediocregopher/mediocre-blog/src/post"
"github.com/mediocregopher/blog.mediocregopher.com/srv/post/asset" "code.betamike.com/mediocregopher/mediocre-blog/src/post/asset"
"github.com/mediocregopher/mediocre-go-lib/v2/mctx" "github.com/mediocregopher/mediocre-go-lib/v2/mctx"
"github.com/mediocregopher/mediocre-go-lib/v2/mlog" "github.com/mediocregopher/mediocre-go-lib/v2/mlog"
) )

View File

@ -9,8 +9,8 @@ import (
"sync" "sync"
"time" "time"
"github.com/mediocregopher/blog.mediocregopher.com/srv/cache" "code.betamike.com/mediocregopher/mediocre-blog/src/cache"
"github.com/mediocregopher/blog.mediocregopher.com/srv/http/apiutil" "code.betamike.com/mediocregopher/mediocre-blog/src/http/apiutil"
"github.com/mediocregopher/mediocre-go-lib/v2/mctx" "github.com/mediocregopher/mediocre-go-lib/v2/mctx"
"github.com/mediocregopher/mediocre-go-lib/v2/mlog" "github.com/mediocregopher/mediocre-go-lib/v2/mlog"
) )

View File

@ -15,10 +15,10 @@ import (
"github.com/gomarkdown/markdown" "github.com/gomarkdown/markdown"
"github.com/gomarkdown/markdown/html" "github.com/gomarkdown/markdown/html"
"github.com/gomarkdown/markdown/parser" "github.com/gomarkdown/markdown/parser"
"github.com/mediocregopher/blog.mediocregopher.com/srv/gmi" "code.betamike.com/mediocregopher/mediocre-blog/src/gmi"
"github.com/mediocregopher/blog.mediocregopher.com/srv/http/apiutil" "code.betamike.com/mediocregopher/mediocre-blog/src/http/apiutil"
"github.com/mediocregopher/blog.mediocregopher.com/srv/post" "code.betamike.com/mediocregopher/mediocre-blog/src/post"
"github.com/mediocregopher/blog.mediocregopher.com/srv/post/asset" "code.betamike.com/mediocregopher/mediocre-blog/src/post/asset"
"github.com/mediocregopher/mediocre-go-lib/v2/mctx" "github.com/mediocregopher/mediocre-go-lib/v2/mctx"
) )

View File

@ -11,7 +11,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/mediocregopher/blog.mediocregopher.com/srv/http/apiutil" "code.betamike.com/mediocregopher/mediocre-blog/src/http/apiutil"
) )
//go:embed tpl //go:embed tpl

View File

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

View File

@ -5,7 +5,7 @@ import (
"io" "io"
"testing" "testing"
"github.com/mediocregopher/blog.mediocregopher.com/srv/post" "code.betamike.com/mediocregopher/mediocre-blog/src/post"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"path" "path"
"github.com/mediocregopher/blog.mediocregopher.com/srv/cfg" "code.betamike.com/mediocregopher/mediocre-blog/src/cfg"
migrate "github.com/rubenv/sql-migrate" migrate "github.com/rubenv/sql-migrate"
_ "github.com/mattn/go-sqlite3" // we need dis _ "github.com/mattn/go-sqlite3" // we need dis