Skip to content

Commit

Permalink
[release] flex v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BioCrossCoder committed May 11, 2024
1 parent 15e07cc commit 0690b78
Show file tree
Hide file tree
Showing 120 changed files with 160 additions and 160 deletions.
2 changes: 1 addition & 1 deletion collections/arraylist/arraylist.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package arraylist

import (
"flex/common"
"github.com/biocrosscoder/flex/common"
)

type ArrayList []any
Expand Down
2 changes: 1 addition & 1 deletion collections/arraylist/functional.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package arraylist

import "flex/common"
import "github.com/biocrosscoder/flex/common"

func (l ArrayList) Map(handler func(any) any) ArrayList {
list := make(ArrayList, l.Len())
Expand Down
2 changes: 1 addition & 1 deletion collections/arraylist/functional_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package arraylist

import (
"flex/common"
"github.com/biocrosscoder/flex/common"
"github.com/smartystreets/goconvey/convey"
"github.com/stretchr/testify/assert"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion collections/arraylist/modify.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package arraylist

import "flex/common"
import "github.com/biocrosscoder/flex/common"

func (l ArrayList) parseCount(counts ...int) int {
if len(counts) == 0 {
Expand Down
2 changes: 1 addition & 1 deletion collections/arraylist/search.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package arraylist

import "flex/common"
import "github.com/biocrosscoder/flex/common"

func (l ArrayList) IndexOf(element any) (index int) {
index = -1
Expand Down
2 changes: 1 addition & 1 deletion collections/arraylist/search_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package arraylist

import (
"flex/common"
"github.com/biocrosscoder/flex/common"
"testing"

"github.com/smartystreets/goconvey/convey"
Expand Down
2 changes: 1 addition & 1 deletion collections/chainmap.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package collections

import "flex/collections/dict"
import "github.com/biocrosscoder/flex/collections/dict"

type ChainMap struct {
items *dict.Dict
Expand Down
2 changes: 1 addition & 1 deletion collections/chainmap_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package collections

import (
"flex/collections/dict"
"github.com/biocrosscoder/flex/collections/dict"
"github.com/smartystreets/goconvey/convey"
"github.com/stretchr/testify/assert"
"testing"
Expand Down
6 changes: 3 additions & 3 deletions collections/counter.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package collections

import (
"flex/collections/arraylist"
"flex/collections/dict"
"flex/collections/set"
"github.com/biocrosscoder/flex/collections/arraylist"
"github.com/biocrosscoder/flex/collections/dict"
"github.com/biocrosscoder/flex/collections/set"
"math"
)

Expand Down
4 changes: 2 additions & 2 deletions collections/counter_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package collections

import (
"flex/collections/arraylist"
"flex/collections/set"
"github.com/biocrosscoder/flex/collections/arraylist"
"github.com/biocrosscoder/flex/collections/set"
"github.com/smartystreets/goconvey/convey"
"github.com/stretchr/testify/assert"
"math"
Expand Down
4 changes: 2 additions & 2 deletions collections/defaultdict.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package collections

import (
"encoding/json"
"flex/collections/dict"
"flex/common"
"github.com/biocrosscoder/flex/collections/dict"
"github.com/biocrosscoder/flex/common"
"fmt"
)

Expand Down
2 changes: 1 addition & 1 deletion collections/defaultdict_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package collections

import (
"encoding/json"
"flex/collections/dict"
"github.com/biocrosscoder/flex/collections/dict"
"fmt"
"github.com/smartystreets/goconvey/convey"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion collections/dict/create.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package dict

import "flex/common"
import "github.com/biocrosscoder/flex/common"

func (d Dict) Copy() Dict {
backup := make(Dict, common.GetMapInitialCapacity(d.Size()))
Expand Down
4 changes: 2 additions & 2 deletions collections/dict/judge.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package dict

import (
"flex/collections/set"
"flex/common"
"github.com/biocrosscoder/flex/collections/set"
"github.com/biocrosscoder/flex/common"
)

func (d Dict) Has(key any) bool {
Expand Down
2 changes: 1 addition & 1 deletion collections/dict/judge_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dict

import (
"flex/collections/arraylist"
"github.com/biocrosscoder/flex/collections/arraylist"
"github.com/smartystreets/goconvey/convey"
"github.com/stretchr/testify/assert"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion collections/dict/modify.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package dict

import "flex/common"
import "github.com/biocrosscoder/flex/common"

func (d *Dict) Clear() *Dict {
*d = make(Dict)
Expand Down
2 changes: 1 addition & 1 deletion collections/dict/modify_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dict

import (
"flex/common"
"github.com/biocrosscoder/flex/common"
"github.com/smartystreets/goconvey/convey"
"github.com/stretchr/testify/assert"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion collections/linkedlist/functional.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package linkedlist

import "flex/common"
import "github.com/biocrosscoder/flex/common"

func (d LinkedList) Map(handler func(any) any) LinkedList {
result := NewLinkedList()
Expand Down
2 changes: 1 addition & 1 deletion collections/linkedlist/functional_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package linkedlist

import (
"flex/common"
"github.com/biocrosscoder/flex/common"
"github.com/smartystreets/goconvey/convey"
"github.com/stretchr/testify/assert"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion collections/linkedlist/linkedlist.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package linkedlist

import (
"flex/common"
"github.com/biocrosscoder/flex/common"
)

type listNode struct {
Expand Down
2 changes: 1 addition & 1 deletion collections/linkedlist/modify.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package linkedlist

import (
"flex/common"
"github.com/biocrosscoder/flex/common"
)

func (d LinkedList) parseCount(counts ...int) int {
Expand Down
2 changes: 1 addition & 1 deletion collections/linkedlist/modify_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package linkedlist

import (
"flex/collections/arraylist"
"github.com/biocrosscoder/flex/collections/arraylist"
"github.com/smartystreets/goconvey/convey"
"github.com/stretchr/testify/assert"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion collections/linkedlist/search.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package linkedlist

import "flex/common"
import "github.com/biocrosscoder/flex/common"

func (d LinkedList) IndexOf(element any) (index int) {
index = -1
Expand Down
2 changes: 1 addition & 1 deletion collections/linkedlist/search_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package linkedlist

import (
"flex/common"
"github.com/biocrosscoder/flex/common"
"github.com/smartystreets/goconvey/convey"
"github.com/stretchr/testify/assert"
"testing"
Expand Down
6 changes: 3 additions & 3 deletions collections/orderedcontainers/orderedchaindict.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package orderedcontainers

import (
"encoding/json"
"flex/collections/dict"
"flex/collections/linkedlist"
"flex/common"
"github.com/biocrosscoder/flex/collections/dict"
"github.com/biocrosscoder/flex/collections/linkedlist"
"github.com/biocrosscoder/flex/common"
"fmt"
"strings"
)
Expand Down
6 changes: 3 additions & 3 deletions collections/orderedcontainers/orderedchainset.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package orderedcontainers

import (
"encoding/json"
"flex/collections/linkedlist"
"flex/collections/set"
"flex/common"
"github.com/biocrosscoder/flex/collections/linkedlist"
"github.com/biocrosscoder/flex/collections/set"
"github.com/biocrosscoder/flex/common"
"strings"
)

Expand Down
6 changes: 3 additions & 3 deletions collections/orderedcontainers/ordereddict.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package orderedcontainers

import (
"encoding/json"
"flex/collections/arraylist"
"flex/collections/dict"
"flex/common"
"github.com/biocrosscoder/flex/collections/arraylist"
"github.com/biocrosscoder/flex/collections/dict"
"github.com/biocrosscoder/flex/common"
"fmt"
"strings"
)
Expand Down
6 changes: 3 additions & 3 deletions collections/orderedcontainers/orderedset.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package orderedcontainers

import (
"encoding/json"
"flex/collections/arraylist"
"flex/collections/set"
"flex/common"
"github.com/biocrosscoder/flex/collections/arraylist"
"github.com/biocrosscoder/flex/collections/set"
"github.com/biocrosscoder/flex/common"
"fmt"
"strings"
)
Expand Down
4 changes: 2 additions & 2 deletions collections/queue/loopqueue.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package queue

import (
"flex/collections/arraylist"
"flex/common"
"github.com/biocrosscoder/flex/collections/arraylist"
"github.com/biocrosscoder/flex/common"
)

type loopQueue struct {
Expand Down
2 changes: 1 addition & 1 deletion collections/queue/loopqueue_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package queue

import (
"flex/common"
"github.com/biocrosscoder/flex/common"
"github.com/smartystreets/goconvey/convey"
"github.com/stretchr/testify/assert"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion collections/queue/priorityqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package queue

import (
"container/heap"
"flex/common"
"github.com/biocrosscoder/flex/common"
)

type PriorityQueue interface {
Expand Down
2 changes: 1 addition & 1 deletion collections/queue/priorityqueue_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package queue

import (
"flex/common"
"github.com/biocrosscoder/flex/common"
"github.com/smartystreets/goconvey/convey"
"github.com/stretchr/testify/assert"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion collections/queue/queue.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package queue

import "flex/collections/linkedlist"
import "github.com/biocrosscoder/flex/collections/linkedlist"

type Queue interface {
Enqueue(element any) (ok bool)
Expand Down
2 changes: 1 addition & 1 deletion collections/set/modify.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package set

import (
"flex/common"
"github.com/biocrosscoder/flex/common"
)

func (s *Set) Add(element any) *Set {
Expand Down
2 changes: 1 addition & 1 deletion collections/set/modify_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package set

import (
"flex/common"
"github.com/biocrosscoder/flex/common"
"testing"

"github.com/smartystreets/goconvey/convey"
Expand Down
2 changes: 1 addition & 1 deletion collections/set/set.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package set

import "flex/common"
import "github.com/biocrosscoder/flex/common"

type Set map[any]bool

Expand Down
2 changes: 1 addition & 1 deletion collections/stack.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package collections

import "flex/collections/linkedlist"
import "github.com/biocrosscoder/flex/collections/linkedlist"

type Stack interface {
Push(element any) (ok bool)
Expand Down
4 changes: 2 additions & 2 deletions collections/translator.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package collections

import (
"flex/collections/dict"
"flex/common"
"github.com/biocrosscoder/flex/collections/dict"
"github.com/biocrosscoder/flex/common"
"strings"
)

Expand Down
4 changes: 2 additions & 2 deletions functools/all.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package functools

import (
"flex/common"
"flex/itertools"
"github.com/biocrosscoder/flex/common"
"github.com/biocrosscoder/flex/itertools"
"reflect"
)

Expand Down
4 changes: 2 additions & 2 deletions functools/any.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package functools

import (
"flex/common"
"flex/itertools"
"github.com/biocrosscoder/flex/common"
"github.com/biocrosscoder/flex/itertools"
"reflect"
)

Expand Down
2 changes: 1 addition & 1 deletion functools/filter.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package functools

import "flex/itertools"
import "github.com/biocrosscoder/flex/itertools"

func Filter(handler, entry any) (output any, err error) {
iterator, err := itertools.Filter(handler, entry)
Expand Down
Loading

0 comments on commit 0690b78

Please sign in to comment.