Changed module name.
This commit is contained in:
parent
f3545473af
commit
a986686247
59 changed files with 152 additions and 134 deletions
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"goweb/middleware"
|
"github.com/mikestefanello/pagoda/middleware"
|
||||||
"goweb/services"
|
"github.com/mikestefanello/pagoda/services"
|
||||||
|
|
||||||
"github.com/eko/gocache/v2/marshaler"
|
"github.com/eko/gocache/v2/marshaler"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,11 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"goweb/config"
|
"github.com/mikestefanello/pagoda/config"
|
||||||
"goweb/htmx"
|
"github.com/mikestefanello/pagoda/htmx"
|
||||||
"goweb/middleware"
|
"github.com/mikestefanello/pagoda/middleware"
|
||||||
"goweb/services"
|
"github.com/mikestefanello/pagoda/services"
|
||||||
"goweb/tests"
|
"github.com/mikestefanello/pagoda/tests"
|
||||||
|
|
||||||
"github.com/eko/gocache/v2/store"
|
"github.com/eko/gocache/v2/store"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package controller
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"goweb/tests"
|
"github.com/mikestefanello/pagoda/tests"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,10 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"goweb/context"
|
"github.com/mikestefanello/pagoda/context"
|
||||||
"goweb/ent"
|
"github.com/mikestefanello/pagoda/ent"
|
||||||
"goweb/htmx"
|
"github.com/mikestefanello/pagoda/htmx"
|
||||||
"goweb/msg"
|
"github.com/mikestefanello/pagoda/msg"
|
||||||
|
|
||||||
echomw "github.com/labstack/echo/v4/middleware"
|
echomw "github.com/labstack/echo/v4/middleware"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"goweb/context"
|
"github.com/mikestefanello/pagoda/context"
|
||||||
"goweb/msg"
|
"github.com/mikestefanello/pagoda/msg"
|
||||||
"goweb/tests"
|
"github.com/mikestefanello/pagoda/tests"
|
||||||
|
|
||||||
echomw "github.com/labstack/echo/v4/middleware"
|
echomw "github.com/labstack/echo/v4/middleware"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"goweb/tests"
|
"github.com/mikestefanello/pagoda/tests"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,10 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"goweb/ent/migrate"
|
"github.com/mikestefanello/pagoda/ent/migrate"
|
||||||
|
|
||||||
"goweb/ent/passwordtoken"
|
"github.com/mikestefanello/pagoda/ent/passwordtoken"
|
||||||
"goweb/ent/user"
|
"github.com/mikestefanello/pagoda/ent/user"
|
||||||
|
|
||||||
"entgo.io/ent/dialect"
|
"entgo.io/ent/dialect"
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,9 @@ package ent
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"goweb/ent/passwordtoken"
|
|
||||||
"goweb/ent/user"
|
"github.com/mikestefanello/pagoda/ent/passwordtoken"
|
||||||
|
"github.com/mikestefanello/pagoda/ent/user"
|
||||||
|
|
||||||
"entgo.io/ent"
|
"entgo.io/ent"
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,11 @@ package enttest
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"goweb/ent"
|
|
||||||
|
"github.com/mikestefanello/pagoda/ent"
|
||||||
|
|
||||||
// required by schema hooks.
|
// required by schema hooks.
|
||||||
_ "goweb/ent/runtime"
|
_ "github.com/mikestefanello/pagoda/ent/runtime"
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql/schema"
|
"entgo.io/ent/dialect/sql/schema"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@ package hook
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"goweb/ent"
|
|
||||||
|
"github.com/mikestefanello/pagoda/ent"
|
||||||
)
|
)
|
||||||
|
|
||||||
// The PasswordTokenFunc type is an adapter to allow the use of ordinary
|
// The PasswordTokenFunc type is an adapter to allow the use of ordinary
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,13 @@ package ent
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"goweb/ent/passwordtoken"
|
|
||||||
"goweb/ent/predicate"
|
|
||||||
"goweb/ent/user"
|
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/mikestefanello/pagoda/ent/passwordtoken"
|
||||||
|
"github.com/mikestefanello/pagoda/ent/predicate"
|
||||||
|
"github.com/mikestefanello/pagoda/ent/user"
|
||||||
|
|
||||||
"entgo.io/ent"
|
"entgo.io/ent"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,12 @@ package ent
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"goweb/ent/passwordtoken"
|
|
||||||
"goweb/ent/user"
|
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/mikestefanello/pagoda/ent/passwordtoken"
|
||||||
|
"github.com/mikestefanello/pagoda/ent/user"
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,10 @@
|
||||||
package passwordtoken
|
package passwordtoken
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"goweb/ent/predicate"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/mikestefanello/pagoda/ent/predicate"
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,11 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"goweb/ent/passwordtoken"
|
|
||||||
"goweb/ent/user"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/mikestefanello/pagoda/ent/passwordtoken"
|
||||||
|
"github.com/mikestefanello/pagoda/ent/user"
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,9 @@ package ent
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"goweb/ent/passwordtoken"
|
|
||||||
"goweb/ent/predicate"
|
"github.com/mikestefanello/pagoda/ent/passwordtoken"
|
||||||
|
"github.com/mikestefanello/pagoda/ent/predicate"
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,12 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"goweb/ent/passwordtoken"
|
|
||||||
"goweb/ent/predicate"
|
|
||||||
"goweb/ent/user"
|
|
||||||
"math"
|
"math"
|
||||||
|
|
||||||
|
"github.com/mikestefanello/pagoda/ent/passwordtoken"
|
||||||
|
"github.com/mikestefanello/pagoda/ent/predicate"
|
||||||
|
"github.com/mikestefanello/pagoda/ent/user"
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,12 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"goweb/ent/passwordtoken"
|
|
||||||
"goweb/ent/predicate"
|
|
||||||
"goweb/ent/user"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/mikestefanello/pagoda/ent/passwordtoken"
|
||||||
|
"github.com/mikestefanello/pagoda/ent/predicate"
|
||||||
|
"github.com/mikestefanello/pagoda/ent/user"
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,11 @@
|
||||||
package runtime
|
package runtime
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"goweb/ent/passwordtoken"
|
|
||||||
"goweb/ent/schema"
|
|
||||||
"goweb/ent/user"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/mikestefanello/pagoda/ent/passwordtoken"
|
||||||
|
"github.com/mikestefanello/pagoda/ent/schema"
|
||||||
|
"github.com/mikestefanello/pagoda/ent/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
// The init function reads all schema descriptors with runtime code
|
// The init function reads all schema descriptors with runtime code
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
ge "goweb/ent"
|
ge "github.com/mikestefanello/pagoda/ent"
|
||||||
"goweb/ent/hook"
|
"github.com/mikestefanello/pagoda/ent/hook"
|
||||||
|
|
||||||
"entgo.io/ent"
|
"entgo.io/ent"
|
||||||
"entgo.io/ent/schema/edge"
|
"entgo.io/ent/schema/edge"
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,11 @@ package ent
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"goweb/ent/user"
|
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/mikestefanello/pagoda/ent/user"
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,10 @@
|
||||||
package user
|
package user
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"goweb/ent/predicate"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/mikestefanello/pagoda/ent/predicate"
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,11 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"goweb/ent/passwordtoken"
|
|
||||||
"goweb/ent/user"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/mikestefanello/pagoda/ent/passwordtoken"
|
||||||
|
"github.com/mikestefanello/pagoda/ent/user"
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,9 @@ package ent
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"goweb/ent/predicate"
|
|
||||||
"goweb/ent/user"
|
"github.com/mikestefanello/pagoda/ent/predicate"
|
||||||
|
"github.com/mikestefanello/pagoda/ent/user"
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
|
|
|
||||||
|
|
@ -7,11 +7,12 @@ import (
|
||||||
"database/sql/driver"
|
"database/sql/driver"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"goweb/ent/passwordtoken"
|
|
||||||
"goweb/ent/predicate"
|
|
||||||
"goweb/ent/user"
|
|
||||||
"math"
|
"math"
|
||||||
|
|
||||||
|
"github.com/mikestefanello/pagoda/ent/passwordtoken"
|
||||||
|
"github.com/mikestefanello/pagoda/ent/predicate"
|
||||||
|
"github.com/mikestefanello/pagoda/ent/user"
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,10 @@ package ent
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"goweb/ent/passwordtoken"
|
|
||||||
"goweb/ent/predicate"
|
"github.com/mikestefanello/pagoda/ent/passwordtoken"
|
||||||
"goweb/ent/user"
|
"github.com/mikestefanello/pagoda/ent/predicate"
|
||||||
|
"github.com/mikestefanello/pagoda/ent/user"
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"goweb/config"
|
"github.com/mikestefanello/pagoda/config"
|
||||||
|
|
||||||
"github.com/Masterminds/sprig"
|
"github.com/Masterminds/sprig"
|
||||||
"github.com/labstack/gommon/random"
|
"github.com/labstack/gommon/random"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"goweb/config"
|
"github.com/mikestefanello/pagoda/config"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
2
go.mod
2
go.mod
|
|
@ -1,4 +1,4 @@
|
||||||
module goweb
|
module github.com/mikestefanello/pagoda
|
||||||
|
|
||||||
go 1.17
|
go 1.17
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"goweb/tests"
|
"github.com/mikestefanello/pagoda/tests"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
|
|
|
||||||
4
main.go
4
main.go
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"goweb/routes"
|
"github.com/mikestefanello/pagoda/routes"
|
||||||
"goweb/services"
|
"github.com/mikestefanello/pagoda/services"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,10 @@ package middleware
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"goweb/context"
|
"github.com/mikestefanello/pagoda/context"
|
||||||
"goweb/ent"
|
"github.com/mikestefanello/pagoda/ent"
|
||||||
"goweb/msg"
|
"github.com/mikestefanello/pagoda/msg"
|
||||||
"goweb/services"
|
"github.com/mikestefanello/pagoda/services"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"goweb/context"
|
"github.com/mikestefanello/pagoda/context"
|
||||||
"goweb/ent"
|
"github.com/mikestefanello/pagoda/ent"
|
||||||
"goweb/tests"
|
"github.com/mikestefanello/pagoda/tests"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"goweb/context"
|
"github.com/mikestefanello/pagoda/context"
|
||||||
|
|
||||||
"github.com/eko/gocache/v2/cache"
|
"github.com/eko/gocache/v2/cache"
|
||||||
"github.com/eko/gocache/v2/marshaler"
|
"github.com/eko/gocache/v2/marshaler"
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"goweb/tests"
|
"github.com/mikestefanello/pagoda/tests"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"goweb/context"
|
"github.com/mikestefanello/pagoda/context"
|
||||||
"goweb/ent"
|
"github.com/mikestefanello/pagoda/ent"
|
||||||
"goweb/ent/user"
|
"github.com/mikestefanello/pagoda/ent/user"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"goweb/context"
|
"github.com/mikestefanello/pagoda/context"
|
||||||
"goweb/ent"
|
"github.com/mikestefanello/pagoda/ent"
|
||||||
"goweb/tests"
|
"github.com/mikestefanello/pagoda/tests"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"goweb/tests"
|
"github.com/mikestefanello/pagoda/tests"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"goweb/config"
|
"github.com/mikestefanello/pagoda/config"
|
||||||
"goweb/ent"
|
"github.com/mikestefanello/pagoda/ent"
|
||||||
"goweb/services"
|
"github.com/mikestefanello/pagoda/services"
|
||||||
"goweb/tests"
|
"github.com/mikestefanello/pagoda/tests"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package msg
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"goweb/tests"
|
"github.com/mikestefanello/pagoda/tests"
|
||||||
|
|
||||||
"github.com/go-playground/assert/v2"
|
"github.com/go-playground/assert/v2"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package routes
|
||||||
import (
|
import (
|
||||||
"html/template"
|
"html/template"
|
||||||
|
|
||||||
"goweb/controller"
|
"github.com/mikestefanello/pagoda/controller"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
package routes
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"goweb/context"
|
"github.com/mikestefanello/pagoda/context"
|
||||||
"goweb/controller"
|
"github.com/mikestefanello/pagoda/controller"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package routes
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"goweb/controller"
|
"github.com/mikestefanello/pagoda/controller"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"goweb/context"
|
"github.com/mikestefanello/pagoda/context"
|
||||||
"goweb/controller"
|
"github.com/mikestefanello/pagoda/controller"
|
||||||
"goweb/ent"
|
"github.com/mikestefanello/pagoda/ent"
|
||||||
"goweb/ent/user"
|
"github.com/mikestefanello/pagoda/ent/user"
|
||||||
"goweb/msg"
|
"github.com/mikestefanello/pagoda/msg"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package routes
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"goweb/controller"
|
"github.com/mikestefanello/pagoda/controller"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"goweb/context"
|
"github.com/mikestefanello/pagoda/context"
|
||||||
"goweb/controller"
|
"github.com/mikestefanello/pagoda/controller"
|
||||||
"goweb/ent"
|
"github.com/mikestefanello/pagoda/ent"
|
||||||
"goweb/ent/user"
|
"github.com/mikestefanello/pagoda/ent/user"
|
||||||
"goweb/msg"
|
"github.com/mikestefanello/pagoda/msg"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
package routes
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"goweb/controller"
|
"github.com/mikestefanello/pagoda/controller"
|
||||||
"goweb/msg"
|
"github.com/mikestefanello/pagoda/msg"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
package routes
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"goweb/context"
|
"github.com/mikestefanello/pagoda/context"
|
||||||
"goweb/controller"
|
"github.com/mikestefanello/pagoda/controller"
|
||||||
"goweb/ent"
|
"github.com/mikestefanello/pagoda/ent"
|
||||||
"goweb/msg"
|
"github.com/mikestefanello/pagoda/msg"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
package routes
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"goweb/context"
|
"github.com/mikestefanello/pagoda/context"
|
||||||
"goweb/controller"
|
"github.com/mikestefanello/pagoda/controller"
|
||||||
"goweb/ent"
|
"github.com/mikestefanello/pagoda/ent"
|
||||||
"goweb/ent/user"
|
"github.com/mikestefanello/pagoda/ent/user"
|
||||||
"goweb/msg"
|
"github.com/mikestefanello/pagoda/msg"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,10 @@ package routes
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"goweb/config"
|
"github.com/mikestefanello/pagoda/config"
|
||||||
"goweb/controller"
|
"github.com/mikestefanello/pagoda/controller"
|
||||||
"goweb/middleware"
|
"github.com/mikestefanello/pagoda/middleware"
|
||||||
"goweb/services"
|
"github.com/mikestefanello/pagoda/services"
|
||||||
|
|
||||||
"github.com/gorilla/sessions"
|
"github.com/gorilla/sessions"
|
||||||
"github.com/labstack/echo-contrib/session"
|
"github.com/labstack/echo-contrib/session"
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"goweb/config"
|
"github.com/mikestefanello/pagoda/config"
|
||||||
"goweb/services"
|
"github.com/mikestefanello/pagoda/services"
|
||||||
|
|
||||||
"github.com/PuerkitoBio/goquery"
|
"github.com/PuerkitoBio/goquery"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
|
|
||||||
"goweb/controller"
|
"github.com/mikestefanello/pagoda/controller"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,10 @@ import (
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"goweb/config"
|
"github.com/mikestefanello/pagoda/config"
|
||||||
"goweb/ent"
|
"github.com/mikestefanello/pagoda/ent"
|
||||||
"goweb/ent/passwordtoken"
|
"github.com/mikestefanello/pagoda/ent/passwordtoken"
|
||||||
"goweb/ent/user"
|
"github.com/mikestefanello/pagoda/ent/user"
|
||||||
|
|
||||||
"github.com/labstack/echo-contrib/session"
|
"github.com/labstack/echo-contrib/session"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"goweb/ent/passwordtoken"
|
"github.com/mikestefanello/pagoda/ent/passwordtoken"
|
||||||
"goweb/ent/user"
|
"github.com/mikestefanello/pagoda/ent/user"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,9 @@ import (
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
"github.com/labstack/gommon/log"
|
"github.com/labstack/gommon/log"
|
||||||
|
|
||||||
"goweb/config"
|
"github.com/mikestefanello/pagoda/config"
|
||||||
"goweb/ent"
|
"github.com/mikestefanello/pagoda/ent"
|
||||||
_ "goweb/ent/runtime"
|
_ "github.com/mikestefanello/pagoda/ent/runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Container contains all services used by the application and provides an easy way to handle dependency
|
// Container contains all services used by the application and provides an easy way to handle dependency
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package services
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"goweb/config"
|
"github.com/mikestefanello/pagoda/config"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"goweb/config"
|
"github.com/mikestefanello/pagoda/config"
|
||||||
"goweb/ent"
|
"github.com/mikestefanello/pagoda/ent"
|
||||||
"goweb/tests"
|
"github.com/mikestefanello/pagoda/tests"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ import (
|
||||||
"runtime"
|
"runtime"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"goweb/config"
|
"github.com/mikestefanello/pagoda/config"
|
||||||
"goweb/funcmap"
|
"github.com/mikestefanello/pagoda/funcmap"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TemplateRenderer provides a flexible and easy to use method of rendering simple templates or complex sets of
|
// TemplateRenderer provides a flexible and easy to use method of rendering simple templates or complex sets of
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"goweb/config"
|
"github.com/mikestefanello/pagoda/config"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"goweb/ent"
|
"github.com/mikestefanello/pagoda/ent"
|
||||||
|
|
||||||
"github.com/go-playground/assert/v2"
|
"github.com/go-playground/assert/v2"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue