Migrate module to gitlab.com/wpetit

This commit is contained in:
wpetit 2019-07-28 13:11:23 +02:00
parent d95bbe0c1f
commit bbcb571772
13 changed files with 19 additions and 19 deletions

View File

@ -17,7 +17,7 @@ clean:
rm -rf ./bin ./release ./coverage
doc:
@echo "open your browser to http://localhost:6060/pkg/forge.cadoles.com/wpetit/goweb to see the documentation"
@echo "open your browser to http://localhost:6060/pkg/gitlab.com/wpetit/goweb to see the documentation"
godoc -http=:6060

View File

@ -6,7 +6,7 @@ Librairie d'aide à la création d'applications web pour Go
## Documentation
https://godoc.org/forge.cadoles.com/wpetit/goweb
https://godoc.org/gitlab.com/wpetit/goweb
## License

View File

@ -3,11 +3,11 @@ package goweb
import (
"net/http"
containerMiddleware "forge.cadoles.com/wpetit/goweb/middleware/container"
"forge.cadoles.com/wpetit/goweb/service"
"forge.cadoles.com/wpetit/goweb/service/template"
"forge.cadoles.com/wpetit/goweb/template/html"
"github.com/go-chi/chi"
containerMiddleware "gitlab.com/wpetit/goweb/middleware/container"
"gitlab.com/wpetit/goweb/service"
"gitlab.com/wpetit/goweb/service/template"
"gitlab.com/wpetit/goweb/template/html"
)
func Example_usage() {

View File

@ -4,9 +4,9 @@ import (
"context"
"errors"
goweb "forge.cadoles.com/wpetit/goweb/middleware"
"forge.cadoles.com/wpetit/goweb/service"
"github.com/go-chi/chi/middleware"
goweb "gitlab.com/wpetit/goweb/middleware"
"gitlab.com/wpetit/goweb/service"
)
const (

View File

@ -4,7 +4,7 @@ import (
"context"
"testing"
"forge.cadoles.com/wpetit/goweb/service"
"gitlab.com/wpetit/goweb/service"
)
func TestContextServiceContainer(t *testing.T) {

View File

@ -4,8 +4,8 @@ import (
"context"
"errors"
goweb "forge.cadoles.com/wpetit/goweb/middleware"
"github.com/go-chi/chi/middleware"
goweb "gitlab.com/wpetit/goweb/middleware"
)
const (

View File

@ -3,8 +3,8 @@ package session
import (
"net/http"
"forge.cadoles.com/wpetit/goweb/service"
"github.com/pkg/errors"
"gitlab.com/wpetit/goweb/service"
)
// ServiceName defines the Session service name

View File

@ -3,8 +3,8 @@ package template
import (
"net/http"
"forge.cadoles.com/wpetit/goweb/service"
"github.com/pkg/errors"
"gitlab.com/wpetit/goweb/service"
)
// ServiceName defines the Tempate service name

View File

@ -1,8 +1,8 @@
package gorilla
import (
"forge.cadoles.com/wpetit/goweb/service"
"github.com/gorilla/sessions"
"gitlab.com/wpetit/goweb/service"
)
// ServiceProvider returns a service.Provider for the

View File

@ -5,9 +5,9 @@ import (
"github.com/gorilla/securecookie"
"forge.cadoles.com/wpetit/goweb/service/session"
"github.com/gorilla/sessions"
"github.com/pkg/errors"
"gitlab.com/wpetit/goweb/service/session"
)
// SessionService is an implementation of service.Session

View File

@ -4,8 +4,8 @@ import (
"fmt"
"net/http"
"forge.cadoles.com/wpetit/goweb/service/session"
"github.com/gorilla/sessions"
"gitlab.com/wpetit/goweb/service/session"
)
// Session is an implementation of the session.Session service

View File

@ -3,10 +3,10 @@ package html
import (
"net/http"
"forge.cadoles.com/wpetit/goweb/service"
"forge.cadoles.com/wpetit/goweb/service/session"
"forge.cadoles.com/wpetit/goweb/service/template"
"github.com/pkg/errors"
"gitlab.com/wpetit/goweb/service"
"gitlab.com/wpetit/goweb/service/session"
"gitlab.com/wpetit/goweb/service/template"
)
// WithFlashes extends the template's data with session's flash messages

View File

@ -1,6 +1,6 @@
package html
import "forge.cadoles.com/wpetit/goweb/service"
import "gitlab.com/wpetit/goweb/service"
// ServiceProvider returns a service.Provider for the
// the HTML template service implementation