Skip to content

Commit d92e2ec

Browse files
committed
Make conf top-level package
1 parent 16e2929 commit d92e2ec

File tree

14 files changed

+67
-58
lines changed

14 files changed

+67
-58
lines changed

checker/checker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"reflect"
66

77
"github.com/antonmedv/expr/ast"
8+
"github.com/antonmedv/expr/conf"
89
"github.com/antonmedv/expr/file"
9-
"github.com/antonmedv/expr/internal/conf"
1010
"github.com/antonmedv/expr/parser"
1111
)
1212

checker/checker_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"github.com/antonmedv/expr"
1010
"github.com/antonmedv/expr/checker"
11-
"github.com/antonmedv/expr/internal/conf"
11+
"github.com/antonmedv/expr/conf"
1212
"github.com/antonmedv/expr/parser"
1313
"github.com/stretchr/testify/assert"
1414
)

compiler/compiler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"reflect"
88

99
"github.com/antonmedv/expr/ast"
10+
"github.com/antonmedv/expr/conf"
1011
"github.com/antonmedv/expr/file"
11-
"github.com/antonmedv/expr/internal/conf"
1212
"github.com/antonmedv/expr/parser"
1313
. "github.com/antonmedv/expr/vm"
1414
)

compiler/compiler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"testing"
77

88
"github.com/antonmedv/expr/compiler"
9-
"github.com/antonmedv/expr/internal/conf"
9+
"github.com/antonmedv/expr/conf"
1010
"github.com/antonmedv/expr/parser"
1111
"github.com/antonmedv/expr/vm"
1212
"github.com/stretchr/testify/assert"

compiler/patcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package compiler
22

33
import (
44
"github.com/antonmedv/expr/ast"
5-
"github.com/antonmedv/expr/internal/conf"
5+
"github.com/antonmedv/expr/conf"
66
)
77

88
type operatorPatcher struct {

internal/conf/config.go renamed to conf/config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package conf
22

33
import (
44
"fmt"
5+
"reflect"
6+
57
"github.com/antonmedv/expr/ast"
68
"github.com/antonmedv/expr/vm"
7-
"reflect"
89
)
910

1011
type Config struct {
File renamed without changes.
File renamed without changes.

docgen/docgen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"regexp"
66
"strings"
77

8-
"github.com/antonmedv/expr/internal/conf"
8+
"github.com/antonmedv/expr/conf"
99
)
1010

1111
// Kind can be any of array, map, struct, func, string, int, float, bool or any.

expr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"github.com/antonmedv/expr/checker"
1010
"github.com/antonmedv/expr/compiler"
11-
"github.com/antonmedv/expr/internal/conf"
11+
"github.com/antonmedv/expr/conf"
1212
"github.com/antonmedv/expr/optimizer"
1313
"github.com/antonmedv/expr/parser"
1414
"github.com/antonmedv/expr/vm"

0 commit comments

Comments
 (0)