Skip to content

Commit

Permalink
chore: move services and models into pkg
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Jirku <martin@jirku.sk>
  • Loading branch information
martinjirku committed Apr 12, 2024
1 parent 76b649f commit 10c7ec4
Show file tree
Hide file tree
Showing 16 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion handlers/Index.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"time"

"jirku.sk/mcmamina/models"
"jirku.sk/mcmamina/pkg/models"
"jirku.sk/mcmamina/template/components"
"jirku.sk/mcmamina/template/pages"
)
Expand Down
2 changes: 1 addition & 1 deletion handlers/SupportedUs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log/slog"
"net/http"

"jirku.sk/mcmamina/models"
"jirku.sk/mcmamina/pkg/models"
"jirku.sk/mcmamina/template/components"
"jirku.sk/mcmamina/template/pages"
)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/joho/godotenv"
"jirku.sk/mcmamina/handlers"
"jirku.sk/mcmamina/pkg/middleware"
"jirku.sk/mcmamina/services"
"jirku.sk/mcmamina/pkg/services"
)

// .env keys
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion services/calendar.go → pkg/services/calendar.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"google.golang.org/api/calendar/v3"
"google.golang.org/api/googleapi"
"google.golang.org/api/option"
"jirku.sk/mcmamina/models"
"jirku.sk/mcmamina/pkg/models"
)

type CalendarService struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"

"github.com/joho/godotenv"
"jirku.sk/mcmamina/services"
"jirku.sk/mcmamina/pkg/services"
)

func TestCalendar(t *testing.T) {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion services/mail_test.go → pkg/services/mail_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"jirku.sk/mcmamina/services"
"jirku.sk/mcmamina/pkg/services"
)

func TestMailSend(t *testing.T) {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion services/sponsor.go → pkg/services/sponsor.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package services
import (
"context"

"jirku.sk/mcmamina/models"
"jirku.sk/mcmamina/pkg/models"
)

type SponsorService struct{}
Expand Down
2 changes: 1 addition & 1 deletion template/components/twoWeeksCalendar.templ
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package components

import (
"time"
"jirku.sk/mcmamina/models"
"jirku.sk/mcmamina/pkg/models"
)

templ TwoWeeksCalendar(days []models.Day, today time.Time) {
Expand Down
2 changes: 1 addition & 1 deletion template/pages/Index.templ
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"time"
"jirku.sk/mcmamina/template/layout"
"jirku.sk/mcmamina/template/components"
"jirku.sk/mcmamina/models"
"jirku.sk/mcmamina/pkg/models"
)

type IndexPageDto struct {
Expand Down
2 changes: 1 addition & 1 deletion template/pages/SupportedUs.templ
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package pages
import (
"jirku.sk/mcmamina/template/layout"
"jirku.sk/mcmamina/template/components"
"jirku.sk/mcmamina/models"
"jirku.sk/mcmamina/pkg/models"
"fmt"
)

Expand Down

0 comments on commit 10c7ec4

Please sign in to comment.