Refactoring to use internal packages
This commit is contained in:
parent
eca62e2e7b
commit
7294254e13
@ -2,9 +2,9 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"go-udemy-web-1/pkg/config"
|
"go-udemy-web-1/internal/config"
|
||||||
"go-udemy-web-1/pkg/handlers"
|
"go-udemy-web-1/internal/handlers"
|
||||||
"go-udemy-web-1/pkg/render"
|
"go-udemy-web-1/internal/render"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go-udemy-web-1/pkg/config"
|
"go-udemy-web-1/internal/config"
|
||||||
"go-udemy-web-1/pkg/handlers"
|
"go-udemy-web-1/internal/handlers"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/go-chi/chi/v5"
|
"github.com/go-chi/chi/v5"
|
||||||
|
@ -3,9 +3,9 @@ package handlers
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"go-udemy-web-1/pkg/config"
|
"go-udemy-web-1/internal/config"
|
||||||
"go-udemy-web-1/pkg/models"
|
"go-udemy-web-1/internal/models"
|
||||||
"go-udemy-web-1/pkg/render"
|
"go-udemy-web-1/internal/render"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
@ -2,8 +2,8 @@ package render
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"go-udemy-web-1/pkg/config"
|
"go-udemy-web-1/internal/config"
|
||||||
"go-udemy-web-1/pkg/models"
|
"go-udemy-web-1/internal/models"
|
||||||
"html/template"
|
"html/template"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
Loading…
Reference in New Issue
Block a user