Fix go module path
This commit is contained in:
parent
ba2d581975
commit
b02115e390
@ -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…
Reference in New Issue
Block a user