Skip to content

Commit af8e5ef

Browse files
refactor(web): encapsulate service logic in internal directory (#253)
1 parent 35c7f38 commit af8e5ef

File tree

14 files changed

+7
-6
lines changed

14 files changed

+7
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
33

44
dist
5+
bin
56

67
# Binaries for programs and plugins
78
*.exe

cmd/web/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import (
44
"fmt"
55
"log"
66

7-
"observability-hub/cmd/web/generator"
7+
"observability-hub/internal/web/generator"
88
)
99

1010
func main() {
11-
if err := generator.Build(".", "dist"); err != nil {
11+
if err := generator.Build("../../internal/web", "dist"); err != nil {
1212
log.Fatalf("Site generation failed: %v", err)
1313
}
1414
fmt.Println("Site generated successfully in dist/")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"strings"
1212
"time"
1313

14-
"observability-hub/cmd/web/schema"
14+
"observability-hub/internal/web/schema"
1515

1616
"gopkg.in/yaml.v3"
1717
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strings"
66
"testing"
77

8-
"observability-hub/cmd/web/schema"
8+
"observability-hub/internal/web/schema"
99
)
1010

1111
type MockFS struct {

0 commit comments

Comments
 (0)