Refactoring to use internal packages

This commit is contained in:
Muyao CHEN 2024-06-30 16:41:46 +02:00
parent eca62e2e7b
commit 7294254e13
6 changed files with 10 additions and 10 deletions

View File

@ -2,9 +2,9 @@ package main
import (
"fmt"
"go-udemy-web-1/pkg/config"
"go-udemy-web-1/pkg/handlers"
"go-udemy-web-1/pkg/render"
"go-udemy-web-1/internal/config"
"go-udemy-web-1/internal/handlers"
"go-udemy-web-1/internal/render"
"log"
"net/http"
"time"

View File

@ -1,8 +1,8 @@
package main
import (
"go-udemy-web-1/pkg/config"
"go-udemy-web-1/pkg/handlers"
"go-udemy-web-1/internal/config"
"go-udemy-web-1/internal/handlers"
"net/http"
"github.com/go-chi/chi/v5"

View File

@ -3,9 +3,9 @@ package handlers
import (
"encoding/json"
"fmt"
"go-udemy-web-1/pkg/config"
"go-udemy-web-1/pkg/models"
"go-udemy-web-1/pkg/render"
"go-udemy-web-1/internal/config"
"go-udemy-web-1/internal/models"
"go-udemy-web-1/internal/render"
"log"
"net/http"
)

View File

@ -2,8 +2,8 @@ package render
import (
"bytes"
"go-udemy-web-1/pkg/config"
"go-udemy-web-1/pkg/models"
"go-udemy-web-1/internal/config"
"go-udemy-web-1/internal/models"
"html/template"
"log"
"net/http"