Skip to content

Commit 28e661a

Browse files
committed
Sort imports
1 parent 6d40552 commit 28e661a

File tree

14 files changed

+29
-25
lines changed

14 files changed

+29
-25
lines changed

bench_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package expr_test
22

33
import (
4-
"github.com/antonmedv/expr/test/real_world"
54
"testing"
65

76
"github.com/antonmedv/expr"
7+
"github.com/antonmedv/expr/test/real_world"
88
"github.com/antonmedv/expr/vm"
99
)
1010

checker/checker_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ package checker_test
22

33
import (
44
"fmt"
5+
"reflect"
6+
"regexp"
7+
"strings"
8+
"testing"
9+
510
"github.com/antonmedv/expr"
611
"github.com/antonmedv/expr/ast"
712
"github.com/antonmedv/expr/checker"
@@ -10,10 +15,6 @@ import (
1015
"github.com/antonmedv/expr/parser"
1116
"github.com/stretchr/testify/assert"
1217
"github.com/stretchr/testify/require"
13-
"reflect"
14-
"regexp"
15-
"strings"
16-
"testing"
1718
)
1819

1920
var successTests = []string{

checker/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package checker
22

33
import (
4-
"github.com/antonmedv/expr/conf"
54
"reflect"
65
"time"
76

87
"github.com/antonmedv/expr/ast"
8+
"github.com/antonmedv/expr/conf"
99
)
1010

1111
var (

compiler/compiler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package compiler
33
import (
44
"encoding/binary"
55
"fmt"
6-
"github.com/antonmedv/expr/vm/runtime"
76
"math"
87
"reflect"
98

@@ -12,6 +11,7 @@ import (
1211
"github.com/antonmedv/expr/file"
1312
"github.com/antonmedv/expr/parser"
1413
. "github.com/antonmedv/expr/vm"
14+
"github.com/antonmedv/expr/vm/runtime"
1515
)
1616

1717
func Compile(tree *parser.Tree, config *conf.Config) (program *Program, err error) {

compiler/compiler_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
package compiler_test
22

33
import (
4-
"github.com/antonmedv/expr"
5-
"github.com/antonmedv/expr/vm/runtime"
64
"math"
75
"reflect"
86
"testing"
97

8+
"github.com/antonmedv/expr"
109
"github.com/antonmedv/expr/compiler"
1110
"github.com/antonmedv/expr/conf"
1211
"github.com/antonmedv/expr/parser"
1312
"github.com/antonmedv/expr/vm"
13+
"github.com/antonmedv/expr/vm/runtime"
1414
"github.com/stretchr/testify/assert"
1515
"github.com/stretchr/testify/require"
1616
)

conf/config.go

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

33
import (
44
"fmt"
5-
"github.com/antonmedv/expr/vm/runtime"
65
"reflect"
76

87
"github.com/antonmedv/expr/ast"
8+
"github.com/antonmedv/expr/vm/runtime"
99
)
1010

1111
type Config struct {

conf/operators.go

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

33
import (
4-
"github.com/antonmedv/expr/ast"
54
"reflect"
5+
6+
"github.com/antonmedv/expr/ast"
67
)
78

89
// OperatorsTable maps binary operators to corresponding list of functions.

docgen/docgen_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package docgen_test
22

33
import (
4-
. "github.com/antonmedv/expr/docgen"
5-
"github.com/stretchr/testify/assert"
6-
"github.com/stretchr/testify/require"
74
"math"
85
"testing"
96
"time"
7+
8+
. "github.com/antonmedv/expr/docgen"
9+
"github.com/stretchr/testify/assert"
10+
"github.com/stretchr/testify/require"
1011
)
1112

1213
type Tweet struct {

expr.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ package expr
22

33
import (
44
"fmt"
5-
"github.com/antonmedv/expr/ast"
6-
"github.com/antonmedv/expr/file"
75
"reflect"
86

7+
"github.com/antonmedv/expr/ast"
98
"github.com/antonmedv/expr/checker"
109
"github.com/antonmedv/expr/compiler"
1110
"github.com/antonmedv/expr/conf"
11+
"github.com/antonmedv/expr/file"
1212
"github.com/antonmedv/expr/optimizer"
1313
"github.com/antonmedv/expr/parser"
1414
"github.com/antonmedv/expr/vm"

expr_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ package expr_test
33
import (
44
"encoding/json"
55
"fmt"
6-
"github.com/antonmedv/expr/ast"
76
"reflect"
87
"strings"
98
"testing"
109
"time"
1110

12-
"github.com/antonmedv/expr/file"
13-
1411
"github.com/antonmedv/expr"
12+
"github.com/antonmedv/expr/ast"
13+
"github.com/antonmedv/expr/file"
1514
"github.com/stretchr/testify/assert"
1615
"github.com/stretchr/testify/require"
1716
)

0 commit comments

Comments
 (0)