Fix go module path

main
Brian Picciano 7 months ago
parent ba2d581975
commit b02115e390
  1. 2
      src/cmd/hash-password/main.go
  2. 6
      src/cmd/load-test-data/main.go
  3. 12
      src/cmd/mediocre-blog/main.go
  4. 2
      src/gmi/cache.go
  5. 8
      src/gmi/gmi.go
  6. 2
      src/gmi/tpl.go
  7. 2
      src/go.mod
  8. 4
      src/http/assets.go
  9. 2
      src/http/auth.go
  10. 2
      src/http/csrf.go
  11. 4
      src/http/drafts.go
  12. 4
      src/http/feed.go
  13. 10
      src/http/http.go
  14. 4
      src/http/middleware.go
  15. 8
      src/http/posts.go
  16. 2
      src/http/tpl.go
  17. 2
      src/post/asset/asset.go
  18. 2
      src/post/asset/asset_test.go
  19. 2
      src/post/sql.go

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save