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 ( 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"

View File

@ -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"

View File

@ -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"
) )

View File

@ -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"