Skip to content

Commit

Permalink
Update to version v6
Browse files Browse the repository at this point in the history
  • Loading branch information
nmayorsplit committed May 14, 2024
1 parent 9e60c1d commit 79be26f
Show file tree
Hide file tree
Showing 182 changed files with 459 additions and 460 deletions.
6 changes: 3 additions & 3 deletions engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"math"

"github.com/splitio/go-split-commons/v5/engine/evaluator/impressionlabels"
"github.com/splitio/go-split-commons/v5/engine/grammar"
"github.com/splitio/go-split-commons/v5/engine/hash"
"github.com/splitio/go-split-commons/v6/engine/evaluator/impressionlabels"
"github.com/splitio/go-split-commons/v6/engine/grammar"
"github.com/splitio/go-split-commons/v6/engine/hash"

"github.com/splitio/go-toolkit/v5/hasher"
"github.com/splitio/go-toolkit/v5/logging"
Expand Down
6 changes: 3 additions & 3 deletions engine/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"os"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v5/engine/grammar"
"github.com/splitio/go-split-commons/v5/engine/hash"
"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/engine/grammar"
"github.com/splitio/go-split-commons/v6/engine/hash"

"github.com/splitio/go-toolkit/v5/hasher"
"github.com/splitio/go-toolkit/v5/logging"
Expand Down
10 changes: 5 additions & 5 deletions engine/evaluator/evaluator.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"fmt"
"time"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v5/engine"
"github.com/splitio/go-split-commons/v5/engine/evaluator/impressionlabels"
"github.com/splitio/go-split-commons/v5/engine/grammar"
"github.com/splitio/go-split-commons/v5/storage"
"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/engine"
"github.com/splitio/go-split-commons/v6/engine/evaluator/impressionlabels"
"github.com/splitio/go-split-commons/v6/engine/grammar"
"github.com/splitio/go-split-commons/v6/storage"

"github.com/splitio/go-toolkit/v5/injection"
"github.com/splitio/go-toolkit/v5/logging"
Expand Down
8 changes: 4 additions & 4 deletions engine/evaluator/evaluator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package evaluator
import (
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v5/flagsets"
"github.com/splitio/go-split-commons/v5/storage/inmemory/mutexmap"
"github.com/splitio/go-split-commons/v5/storage/mocks"
"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/flagsets"
"github.com/splitio/go-split-commons/v6/storage/inmemory/mutexmap"
"github.com/splitio/go-split-commons/v6/storage/mocks"

"github.com/splitio/go-toolkit/v5/datastructures/set"
"github.com/splitio/go-toolkit/v5/logging"
Expand Down
2 changes: 1 addition & 1 deletion engine/evaluator/mocks/mocks.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package mocks

import "github.com/splitio/go-split-commons/v5/engine/evaluator"
import "github.com/splitio/go-split-commons/v6/engine/evaluator"

// MockEvaluator mock evaluator
type MockEvaluator struct {
Expand Down
6 changes: 3 additions & 3 deletions engine/grammar/condition.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package grammar

import (
"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v5/engine/grammar/matchers"
"github.com/splitio/go-split-commons/v5/engine/grammar/matchers/datatypes"
"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers/datatypes"
"github.com/splitio/go-toolkit/v5/injection"
"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
6 changes: 3 additions & 3 deletions engine/grammar/condition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package grammar
import (
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v5/engine/grammar/matchers"
"github.com/splitio/go-split-commons/v5/engine/grammar/matchers/datatypes"
"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers/datatypes"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/allkeys_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v6/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/allofset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v6/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/anyofset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v6/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/between.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"reflect"

"github.com/splitio/go-split-commons/v5/engine/grammar/matchers/datatypes"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers/datatypes"
)

// BetweenMatcher will match if two numbers or two datetimes are equal
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/between_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v6/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/boolean_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v6/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/contains_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v6/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
12 changes: 6 additions & 6 deletions engine/grammar/matchers/dependency_test/dependency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v5/engine"
"github.com/splitio/go-split-commons/v5/engine/evaluator"
"github.com/splitio/go-split-commons/v5/engine/grammar/matchers"
"github.com/splitio/go-split-commons/v5/flagsets"
"github.com/splitio/go-split-commons/v5/storage/inmemory/mutexmap"
"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/engine"
"github.com/splitio/go-split-commons/v6/engine/evaluator"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers"
"github.com/splitio/go-split-commons/v6/flagsets"
"github.com/splitio/go-split-commons/v6/storage/inmemory/mutexmap"

"github.com/splitio/go-toolkit/v5/injection"
"github.com/splitio/go-toolkit/v5/logging"
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/endswith_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v6/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/equalto.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"reflect"

"github.com/splitio/go-split-commons/v5/engine/grammar/matchers/datatypes"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers/datatypes"
)

// EqualToMatcher will match if two numbers or two datetimes are equal
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/equalto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v6/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/equaltoset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v6/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/gtoet.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package matchers
import (
"fmt"

"github.com/splitio/go-split-commons/v5/engine/grammar/matchers/datatypes"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers/datatypes"
)

// GreaterThanOrEqualToMatcher will match if two numbers or two datetimes are equal
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/gtoet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v6/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/insegment.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package matchers
import (
"fmt"

"github.com/splitio/go-split-commons/v5/storage"
"github.com/splitio/go-split-commons/v6/storage"
)

// InSegmentMatcher matches if the key passed is in the segment which the matcher was constructed with
Expand Down
4 changes: 2 additions & 2 deletions engine/grammar/matchers/insegment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v5/storage/inmemory/mutexmap"
"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/storage/inmemory/mutexmap"

"github.com/splitio/go-toolkit/v5/datastructures/set"
"github.com/splitio/go-toolkit/v5/injection"
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/ltoet.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package matchers
import (
"fmt"

"github.com/splitio/go-split-commons/v5/engine/grammar/matchers/datatypes"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers/datatypes"
)

// LessThanOrEqualToMatcher will match if two numbers or two datetimes are equal
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/ltoet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v6/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/matcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v6/dtos"

"github.com/splitio/go-toolkit/v5/injection"
"github.com/splitio/go-toolkit/v5/logging"
Expand Down
4 changes: 2 additions & 2 deletions engine/grammar/matchers/matchers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"fmt"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v5/engine/grammar/matchers/datatypes"
"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers/datatypes"

"github.com/splitio/go-toolkit/v5/injection"
"github.com/splitio/go-toolkit/v5/logging"
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/partofset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v6/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/regex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v6/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/semver.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package matchers
import (
"fmt"

"github.com/splitio/go-split-commons/v5/engine/grammar/matchers/datatypes"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers/datatypes"
"github.com/splitio/go-toolkit/v5/datastructures/set"
"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/semver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-toolkit/v5/logging"
)

Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/startswith_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v6/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/whitelist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v6/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
6 changes: 3 additions & 3 deletions engine/grammar/split.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package grammar

import (
"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v5/engine/evaluator/impressionlabels"
"github.com/splitio/go-split-commons/v5/engine/grammar/matchers"
"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/engine/evaluator/impressionlabels"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers"

"github.com/splitio/go-toolkit/v5/injection"
"github.com/splitio/go-toolkit/v5/logging"
Expand Down
4 changes: 2 additions & 2 deletions engine/grammar/split_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package grammar
import (
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v5/engine/grammar/matchers"
"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
12 changes: 6 additions & 6 deletions engine/validator/matchers.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package validator

import (
"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v5/engine/evaluator"
"github.com/splitio/go-split-commons/v5/engine/evaluator/impressionlabels"
"github.com/splitio/go-split-commons/v5/engine/grammar"
"github.com/splitio/go-split-commons/v5/engine/grammar/matchers"
"github.com/splitio/go-split-commons/v5/engine/grammar/matchers/datatypes"
"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/engine/evaluator"
"github.com/splitio/go-split-commons/v6/engine/evaluator/impressionlabels"
"github.com/splitio/go-split-commons/v6/engine/grammar"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers/datatypes"
"github.com/splitio/go-toolkit/v5/injection"
"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
6 changes: 3 additions & 3 deletions engine/validator/matchers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package validator
import (
"testing"

"github.com/splitio/go-split-commons/v5/dtos"
"github.com/splitio/go-split-commons/v5/engine/grammar"
"github.com/splitio/go-split-commons/v5/engine/grammar/matchers"
"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/engine/grammar"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers"
"github.com/splitio/go-toolkit/v5/common"
"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
Loading

0 comments on commit 79be26f

Please sign in to comment.