Remove pkg subfolder
diff --git a/pkg/ast/ast.go b/ast/ast.go
similarity index 100%
rename from pkg/ast/ast.go
rename to ast/ast.go
diff --git a/pkg/ast/ast_test.go b/ast/ast_test.go
similarity index 100%
rename from pkg/ast/ast_test.go
rename to ast/ast_test.go
diff --git a/cmd/termmapper/fuzz_test.go b/cmd/termmapper/fuzz_test.go
index ea80268..3075b31 100644
--- a/cmd/termmapper/fuzz_test.go
+++ b/cmd/termmapper/fuzz_test.go
@@ -13,7 +13,7 @@
"strings"
"testing"
- "github.com/KorAP/KoralPipe-TermMapper2/pkg/mapper"
+ "github.com/KorAP/KoralPipe-TermMapper2/mapper"
"github.com/gofiber/fiber/v2"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
diff --git a/cmd/termmapper/main.go b/cmd/termmapper/main.go
index e500af4..f962d7b 100644
--- a/cmd/termmapper/main.go
+++ b/cmd/termmapper/main.go
@@ -8,7 +8,7 @@
"strings"
"syscall"
- "github.com/KorAP/KoralPipe-TermMapper2/pkg/mapper"
+ "github.com/KorAP/KoralPipe-TermMapper2/mapper"
"github.com/gofiber/fiber/v2"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
diff --git a/cmd/termmapper/main_test.go b/cmd/termmapper/main_test.go
index 0387cc6..bd9f72e 100644
--- a/cmd/termmapper/main_test.go
+++ b/cmd/termmapper/main_test.go
@@ -10,7 +10,7 @@
"path/filepath"
"testing"
- "github.com/KorAP/KoralPipe-TermMapper2/pkg/mapper"
+ "github.com/KorAP/KoralPipe-TermMapper2/mapper"
"github.com/gofiber/fiber/v2"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
diff --git a/pkg/config/config.go b/config/config.go
similarity index 96%
rename from pkg/config/config.go
rename to config/config.go
index be91161..6394337 100644
--- a/pkg/config/config.go
+++ b/config/config.go
@@ -4,8 +4,8 @@
"fmt"
"os"
- "github.com/KorAP/KoralPipe-TermMapper2/pkg/ast"
- "github.com/KorAP/KoralPipe-TermMapper2/pkg/parser"
+ "github.com/KorAP/KoralPipe-TermMapper2/ast"
+ "github.com/KorAP/KoralPipe-TermMapper2/parser"
"gopkg.in/yaml.v3"
)
diff --git a/pkg/config/config_test.go b/config/config_test.go
similarity index 99%
rename from pkg/config/config_test.go
rename to config/config_test.go
index edc56aa..0d0e5cc 100644
--- a/pkg/config/config_test.go
+++ b/config/config_test.go
@@ -4,7 +4,7 @@
"os"
"testing"
- "github.com/KorAP/KoralPipe-TermMapper2/pkg/ast"
+ "github.com/KorAP/KoralPipe-TermMapper2/ast"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/pkg/mapper/mapper.go b/mapper/mapper.go
similarity index 95%
rename from pkg/mapper/mapper.go
rename to mapper/mapper.go
index 8350823..2747e86 100644
--- a/pkg/mapper/mapper.go
+++ b/mapper/mapper.go
@@ -4,10 +4,10 @@
"encoding/json"
"fmt"
- "github.com/KorAP/KoralPipe-TermMapper2/pkg/ast"
- "github.com/KorAP/KoralPipe-TermMapper2/pkg/config"
- "github.com/KorAP/KoralPipe-TermMapper2/pkg/matcher"
- "github.com/KorAP/KoralPipe-TermMapper2/pkg/parser"
+ "github.com/KorAP/KoralPipe-TermMapper2/ast"
+ "github.com/KorAP/KoralPipe-TermMapper2/config"
+ "github.com/KorAP/KoralPipe-TermMapper2/matcher"
+ "github.com/KorAP/KoralPipe-TermMapper2/parser"
)
// Direction represents the mapping direction (A to B or B to A)
diff --git a/pkg/mapper/mapper_test.go b/mapper/mapper_test.go
similarity index 98%
rename from pkg/mapper/mapper_test.go
rename to mapper/mapper_test.go
index 40ec88e..89e65be 100644
--- a/pkg/mapper/mapper_test.go
+++ b/mapper/mapper_test.go
@@ -6,8 +6,8 @@
"path/filepath"
"testing"
- "github.com/KorAP/KoralPipe-TermMapper2/pkg/ast"
- "github.com/KorAP/KoralPipe-TermMapper2/pkg/matcher"
+ "github.com/KorAP/KoralPipe-TermMapper2/ast"
+ "github.com/KorAP/KoralPipe-TermMapper2/matcher"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/pkg/matcher/matcher.go b/matcher/matcher.go
similarity index 99%
rename from pkg/matcher/matcher.go
rename to matcher/matcher.go
index d0a2259..7542bdf 100644
--- a/pkg/matcher/matcher.go
+++ b/matcher/matcher.go
@@ -3,7 +3,7 @@
import (
"fmt"
- "github.com/KorAP/KoralPipe-TermMapper2/pkg/ast"
+ "github.com/KorAP/KoralPipe-TermMapper2/ast"
)
// Matcher handles pattern matching and replacement in the AST
diff --git a/pkg/matcher/matcher_test.go b/matcher/matcher_test.go
similarity index 99%
rename from pkg/matcher/matcher_test.go
rename to matcher/matcher_test.go
index 47af1f9..3f05edc 100644
--- a/pkg/matcher/matcher_test.go
+++ b/matcher/matcher_test.go
@@ -7,7 +7,7 @@
"encoding/json"
"testing"
- "github.com/KorAP/KoralPipe-TermMapper2/pkg/ast"
+ "github.com/KorAP/KoralPipe-TermMapper2/ast"
"github.com/stretchr/testify/assert"
)
diff --git a/pkg/parser/grammar_parser.go b/parser/grammar_parser.go
similarity index 99%
rename from pkg/parser/grammar_parser.go
rename to parser/grammar_parser.go
index 6e677b6..3701d49 100644
--- a/pkg/parser/grammar_parser.go
+++ b/parser/grammar_parser.go
@@ -4,7 +4,7 @@
"fmt"
"strings"
- "github.com/KorAP/KoralPipe-TermMapper2/pkg/ast"
+ "github.com/KorAP/KoralPipe-TermMapper2/ast"
"github.com/alecthomas/participle/v2"
"github.com/alecthomas/participle/v2/lexer"
)
diff --git a/pkg/parser/grammar_parser_test.go b/parser/grammar_parser_test.go
similarity index 98%
rename from pkg/parser/grammar_parser_test.go
rename to parser/grammar_parser_test.go
index f076ef0..d9e5534 100644
--- a/pkg/parser/grammar_parser_test.go
+++ b/parser/grammar_parser_test.go
@@ -3,7 +3,7 @@
import (
"testing"
- "github.com/KorAP/KoralPipe-TermMapper2/pkg/ast"
+ "github.com/KorAP/KoralPipe-TermMapper2/ast"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/pkg/parser/parser.go b/parser/parser.go
similarity index 99%
rename from pkg/parser/parser.go
rename to parser/parser.go
index 3730683..d81c3b0 100644
--- a/pkg/parser/parser.go
+++ b/parser/parser.go
@@ -8,7 +8,7 @@
"fmt"
"strings"
- "github.com/KorAP/KoralPipe-TermMapper2/pkg/ast"
+ "github.com/KorAP/KoralPipe-TermMapper2/ast"
)
// rawNode represents the raw JSON structure
diff --git a/pkg/parser/parser_test.go b/parser/parser_test.go
similarity index 99%
rename from pkg/parser/parser_test.go
rename to parser/parser_test.go
index 0a6ad27..93bb2e5 100644
--- a/pkg/parser/parser_test.go
+++ b/parser/parser_test.go
@@ -4,7 +4,7 @@
"encoding/json"
"testing"
- "github.com/KorAP/KoralPipe-TermMapper2/pkg/ast"
+ "github.com/KorAP/KoralPipe-TermMapper2/ast"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)