Migrate module to gitlab.com/wpetit
This commit is contained in:
parent
d95bbe0c1f
commit
bbcb571772
2
Makefile
2
Makefile
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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() {
|
||||
|
@ -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 (
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"forge.cadoles.com/wpetit/goweb/service"
|
||||
"gitlab.com/wpetit/goweb/service"
|
||||
)
|
||||
|
||||
func TestContextServiceContainer(t *testing.T) {
|
||||
|
@ -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 (
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user