diff --git a/config/config.yaml b/cfg/config.yaml similarity index 100% rename from config/config.yaml rename to cfg/config.yaml diff --git a/cmd/main/node.go b/cmd/main/node.go index 7e793d5..f427b82 100644 --- a/cmd/main/node.go +++ b/cmd/main/node.go @@ -7,7 +7,7 @@ import ( "github.com/akyaiy/GoSally-mvp/internal/config" "github.com/akyaiy/GoSally-mvp/internal/logs" - "github.com/akyaiy/GoSally-mvp/internal/server/v1" + "github.com/akyaiy/GoSally-mvp/internal/v1" "github.com/go-chi/chi/v5" ) diff --git a/internal/config/config.go b/config/config.go similarity index 93% rename from internal/config/config.go rename to config/config.go index 219f6cb..4cc15d7 100644 --- a/internal/config/config.go +++ b/config/config.go @@ -21,7 +21,7 @@ type HTTPServer struct { } type ConfigEnv struct { - ConfigPath string `env:"CONFIG_PATH" env-default:"./config/config.yaml"` + ConfigPath string `env:"CONFIG_PATH" env-default:"./cfg/config.yaml"` } func MustLoadConfig() *ConfigConf { diff --git a/internal/config/go.mod b/config/go.mod similarity index 83% rename from internal/config/go.mod rename to config/go.mod index d05a9a1..a02ac1d 100644 --- a/internal/config/go.mod +++ b/config/go.mod @@ -1,4 +1,4 @@ -module github.com/akyaiy/GoSally-mvp/internal/config +module github.com/akyaiy/GoSally-mvp/config go 1.24.4 diff --git a/internal/config/go.sum b/config/go.sum similarity index 100% rename from internal/config/go.sum rename to config/go.sum diff --git a/internal/logs/go.mod b/internal/logs/go.mod deleted file mode 100644 index ee77246..0000000 --- a/internal/logs/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module github.com/akyaiy/GoSally-mvp/internal/logs - -go 1.24.4 diff --git a/logs/go.mod b/logs/go.mod new file mode 100644 index 0000000..b7c90b0 --- /dev/null +++ b/logs/go.mod @@ -0,0 +1,3 @@ +module github.com/akyaiy/GoSally-mvp/logs + +go 1.24.4 diff --git a/internal/logs/logger.go b/logs/logger.go similarity index 100% rename from internal/logs/logger.go rename to logs/logger.go diff --git a/internal/v1/go.mod b/v1/go.mod similarity index 73% rename from internal/v1/go.mod rename to v1/go.mod index 1e25566..5042773 100644 --- a/internal/v1/go.mod +++ b/v1/go.mod @@ -1,9 +1,9 @@ -module github.com/akyaiy/GoSally-mvp/internal/v1 +module github.com/akyaiy/GoSally-mvp/v1 go 1.24.4 require ( - github.com/akyaiy/GoSally-mvp/internal/config v0.0.0-20250622085654-213db0b8c73b + github.com/akyaiy/GoSally-mvp/internal/config v0.0.0-20250622140114-c15e6c5b1592 github.com/go-chi/chi/v5 v5.2.2 github.com/yuin/gopher-lua v1.1.1 ) diff --git a/internal/v1/go.sum b/v1/go.sum similarity index 87% rename from internal/v1/go.sum rename to v1/go.sum index d14b362..204f550 100644 --- a/internal/v1/go.sum +++ b/v1/go.sum @@ -3,6 +3,8 @@ github.com/BurntSushi/toml v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg github.com/BurntSushi/toml v1.5.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= github.com/akyaiy/GoSally-mvp/internal/config v0.0.0-20250622085654-213db0b8c73b h1:RTHso+pWhmwWLFVMCMt6ZZ5oGGh0jbOAlN8vBnD2G8o= github.com/akyaiy/GoSally-mvp/internal/config v0.0.0-20250622085654-213db0b8c73b/go.mod h1:VCJJWOEkisTU5IBIuNVEc2ahosMRnoVy/I/Dnf79KVM= +github.com/akyaiy/GoSally-mvp/internal/config v0.0.0-20250622140114-c15e6c5b1592 h1:V5QzqnFoDnOVpjxMb0ZsBAX5jDaPE6OEiHxZ40/pqxM= +github.com/akyaiy/GoSally-mvp/internal/config v0.0.0-20250622140114-c15e6c5b1592/go.mod h1:VCJJWOEkisTU5IBIuNVEc2ahosMRnoVy/I/Dnf79KVM= github.com/go-chi/chi/v5 v5.2.2 h1:CMwsvRVTbXVytCk1Wd72Zy1LAsAh9GxMmSNWLHCG618= github.com/go-chi/chi/v5 v5.2.2/go.mod h1:L2yAIGWB3H+phAw1NxKwWM+7eUH/lU8pOMm5hHcoops= github.com/ilyakaznacheev/cleanenv v1.5.0 h1:0VNZXggJE2OYdXE87bfSSwGxeiGt9moSR2lOrsHHvr4= diff --git a/internal/v1/handle_com.go b/v1/handle_com.go similarity index 100% rename from internal/v1/handle_com.go rename to v1/handle_com.go diff --git a/internal/v1/handle_list.go b/v1/handle_list.go similarity index 100% rename from internal/v1/handle_list.go rename to v1/handle_list.go diff --git a/internal/v1/server.go b/v1/server.go similarity index 100% rename from internal/v1/server.go rename to v1/server.go diff --git a/internal/v1/utils.go b/v1/utils.go similarity index 100% rename from internal/v1/utils.go rename to v1/utils.go