From 4454bd800e8f81ef23abe1080d6c1d1f53ba5759 Mon Sep 17 00:00:00 2001 From: Reza Behzadan Date: Sun, 18 Feb 2024 16:15:34 +0330 Subject: [PATCH] Move dict to the project's root directory --- {internal/dict => dict}/dict.go | 0 {internal/dict => dict}/dict_copy.go | 0 {internal/dict => dict}/dict_copy_test.go | 0 {internal/dict => dict}/dict_merge.go | 0 {internal/dict => dict}/dict_merge_test.go | 0 {internal/dict => dict}/dict_serialization.go | 0 {internal/dict => dict}/dict_serialization_test.go | 0 {internal/dict => dict}/dict_test.go | 0 {internal/dict => dict}/test_data/dict1.yaml | 0 {internal/dict => dict}/test_data/dict2.yaml | 0 {internal/dict => dict}/test_data/dict3.yaml | 0 {internal/dict => dict}/test_data/dict4.yaml | 0 {internal/dict => dict}/test_data/dict5.yaml | 0 {internal/dict => dict}/test_data/getvalue_cases.yaml | 0 {internal/dict => dict}/test_data/merge_cases.yaml | 0 {internal/dict => dict}/test_data/soft_merge_cases.yaml | 0 {internal/dict => dict}/testutils_test.go | 0 main.go | 4 ++-- 18 files changed, 2 insertions(+), 2 deletions(-) rename {internal/dict => dict}/dict.go (100%) rename {internal/dict => dict}/dict_copy.go (100%) rename {internal/dict => dict}/dict_copy_test.go (100%) rename {internal/dict => dict}/dict_merge.go (100%) rename {internal/dict => dict}/dict_merge_test.go (100%) rename {internal/dict => dict}/dict_serialization.go (100%) rename {internal/dict => dict}/dict_serialization_test.go (100%) rename {internal/dict => dict}/dict_test.go (100%) rename {internal/dict => dict}/test_data/dict1.yaml (100%) rename {internal/dict => dict}/test_data/dict2.yaml (100%) rename {internal/dict => dict}/test_data/dict3.yaml (100%) rename {internal/dict => dict}/test_data/dict4.yaml (100%) rename {internal/dict => dict}/test_data/dict5.yaml (100%) rename {internal/dict => dict}/test_data/getvalue_cases.yaml (100%) rename {internal/dict => dict}/test_data/merge_cases.yaml (100%) rename {internal/dict => dict}/test_data/soft_merge_cases.yaml (100%) rename {internal/dict => dict}/testutils_test.go (100%) diff --git a/internal/dict/dict.go b/dict/dict.go similarity index 100% rename from internal/dict/dict.go rename to dict/dict.go diff --git a/internal/dict/dict_copy.go b/dict/dict_copy.go similarity index 100% rename from internal/dict/dict_copy.go rename to dict/dict_copy.go diff --git a/internal/dict/dict_copy_test.go b/dict/dict_copy_test.go similarity index 100% rename from internal/dict/dict_copy_test.go rename to dict/dict_copy_test.go diff --git a/internal/dict/dict_merge.go b/dict/dict_merge.go similarity index 100% rename from internal/dict/dict_merge.go rename to dict/dict_merge.go diff --git a/internal/dict/dict_merge_test.go b/dict/dict_merge_test.go similarity index 100% rename from internal/dict/dict_merge_test.go rename to dict/dict_merge_test.go diff --git a/internal/dict/dict_serialization.go b/dict/dict_serialization.go similarity index 100% rename from internal/dict/dict_serialization.go rename to dict/dict_serialization.go diff --git a/internal/dict/dict_serialization_test.go b/dict/dict_serialization_test.go similarity index 100% rename from internal/dict/dict_serialization_test.go rename to dict/dict_serialization_test.go diff --git a/internal/dict/dict_test.go b/dict/dict_test.go similarity index 100% rename from internal/dict/dict_test.go rename to dict/dict_test.go diff --git a/internal/dict/test_data/dict1.yaml b/dict/test_data/dict1.yaml similarity index 100% rename from internal/dict/test_data/dict1.yaml rename to dict/test_data/dict1.yaml diff --git a/internal/dict/test_data/dict2.yaml b/dict/test_data/dict2.yaml similarity index 100% rename from internal/dict/test_data/dict2.yaml rename to dict/test_data/dict2.yaml diff --git a/internal/dict/test_data/dict3.yaml b/dict/test_data/dict3.yaml similarity index 100% rename from internal/dict/test_data/dict3.yaml rename to dict/test_data/dict3.yaml diff --git a/internal/dict/test_data/dict4.yaml b/dict/test_data/dict4.yaml similarity index 100% rename from internal/dict/test_data/dict4.yaml rename to dict/test_data/dict4.yaml diff --git a/internal/dict/test_data/dict5.yaml b/dict/test_data/dict5.yaml similarity index 100% rename from internal/dict/test_data/dict5.yaml rename to dict/test_data/dict5.yaml diff --git a/internal/dict/test_data/getvalue_cases.yaml b/dict/test_data/getvalue_cases.yaml similarity index 100% rename from internal/dict/test_data/getvalue_cases.yaml rename to dict/test_data/getvalue_cases.yaml diff --git a/internal/dict/test_data/merge_cases.yaml b/dict/test_data/merge_cases.yaml similarity index 100% rename from internal/dict/test_data/merge_cases.yaml rename to dict/test_data/merge_cases.yaml diff --git a/internal/dict/test_data/soft_merge_cases.yaml b/dict/test_data/soft_merge_cases.yaml similarity index 100% rename from internal/dict/test_data/soft_merge_cases.yaml rename to dict/test_data/soft_merge_cases.yaml diff --git a/internal/dict/testutils_test.go b/dict/testutils_test.go similarity index 100% rename from internal/dict/testutils_test.go rename to dict/testutils_test.go diff --git a/main.go b/main.go index ce1f88a..d750e03 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ package main import ( - "git.behzadan.ir/reza/GoDict/internal/dict" + "git.behzadan.ir/reza/GoDict/dict" ) func load(fn string) dict.Dict { @@ -13,7 +13,7 @@ func load(fn string) dict.Dict { } func main() { - d := load("internal/dict/test_data/dict4.yaml") + d := load("dict/test_data/dict4.yaml") v := d.GetValue("nginx.sites.www") v.Print() }