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 rm -rf ./bin ./release ./coverage
doc: 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 godoc -http=:6060

View File

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

View File

@ -3,11 +3,11 @@ package goweb
import ( import (
"net/http" "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" "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() { func Example_usage() {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,10 +3,10 @@ package html
import ( import (
"net/http" "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" "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 // WithFlashes extends the template's data with session's flash messages

View File

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