From 39002b20d5786b5dae17faa82a4b308a58e904a6 Mon Sep 17 00:00:00 2001 From: Rimuru Tempest Date: Sat, 10 Jun 2023 20:18:35 +0700 Subject: [PATCH] change layer name --- example/main.go | 6 +++--- infrastructure/bootstrap.go | 4 ++-- {internal => pkg}/config/toml.go | 0 {internal => pkg}/database/database.go | 0 {internal => pkg}/database/gen.go | 0 {internal => pkg}/database/globals.go | 0 {internal => pkg}/database/migration.go | 0 {internal => pkg}/server/server.go | 0 8 files changed, 5 insertions(+), 5 deletions(-) rename {internal => pkg}/config/toml.go (100%) rename {internal => pkg}/database/database.go (100%) rename {internal => pkg}/database/gen.go (100%) rename {internal => pkg}/database/globals.go (100%) rename {internal => pkg}/database/migration.go (100%) rename {internal => pkg}/server/server.go (100%) diff --git a/example/main.go b/example/main.go index ddef31c..0cb73d7 100644 --- a/example/main.go +++ b/example/main.go @@ -9,9 +9,9 @@ import ( "github.com/zakirkun/infra-go/example/models" routers "github.com/zakirkun/infra-go/example/routers" "github.com/zakirkun/infra-go/infrastructure" - "github.com/zakirkun/infra-go/internal/config" - "github.com/zakirkun/infra-go/internal/database" - "github.com/zakirkun/infra-go/internal/server" + "github.com/zakirkun/infra-go/pkg/config" + "github.com/zakirkun/infra-go/pkg/database" + "github.com/zakirkun/infra-go/pkg/server" ) var configFile *string diff --git a/infrastructure/bootstrap.go b/infrastructure/bootstrap.go index 3f44939..afa3703 100644 --- a/infrastructure/bootstrap.go +++ b/infrastructure/bootstrap.go @@ -3,8 +3,8 @@ package infrastructure import ( "os" - "github.com/zakirkun/infra-go/internal/database" - "github.com/zakirkun/infra-go/internal/server" + "github.com/zakirkun/infra-go/pkg/database" + "github.com/zakirkun/infra-go/pkg/server" ) type Infrastructure interface { diff --git a/internal/config/toml.go b/pkg/config/toml.go similarity index 100% rename from internal/config/toml.go rename to pkg/config/toml.go diff --git a/internal/database/database.go b/pkg/database/database.go similarity index 100% rename from internal/database/database.go rename to pkg/database/database.go diff --git a/internal/database/gen.go b/pkg/database/gen.go similarity index 100% rename from internal/database/gen.go rename to pkg/database/gen.go diff --git a/internal/database/globals.go b/pkg/database/globals.go similarity index 100% rename from internal/database/globals.go rename to pkg/database/globals.go diff --git a/internal/database/migration.go b/pkg/database/migration.go similarity index 100% rename from internal/database/migration.go rename to pkg/database/migration.go diff --git a/internal/server/server.go b/pkg/server/server.go similarity index 100% rename from internal/server/server.go rename to pkg/server/server.go