From 308fe487189ed307524ccfce70eb89adcf2446dd Mon Sep 17 00:00:00 2001 From: "Dr. Carsten Leue" Date: Tue, 18 Jul 2023 15:45:02 +0200 Subject: [PATCH 1/2] doc: try package doc Signed-off-by: Dr. Carsten Leue --- context/doc.go | 2 ++ context/readerioeither/doc.go | 1 + 2 files changed, 3 insertions(+) diff --git a/context/doc.go b/context/doc.go index 514b137..9f3bcfc 100644 --- a/context/doc.go +++ b/context/doc.go @@ -12,4 +12,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + +// Package context contains versions of monads that work with a golang [context.Context] package context diff --git a/context/readerioeither/doc.go b/context/readerioeither/doc.go index deb5ba8..b8d5612 100644 --- a/context/readerioeither/doc.go +++ b/context/readerioeither/doc.go @@ -1,3 +1,4 @@ +// Package readerioeither contains a version of [ReaderIOEither] that takes a golang [context.Context] as its context package readerioeither //go:generate go run ../.. contextreaderioeither --count 10 --filename gen.go From b25de3c7c38f14a19b0af78b5054a2e318755f2f Mon Sep 17 00:00:00 2001 From: "Dr. Carsten Leue" Date: Tue, 18 Jul 2023 15:57:54 +0200 Subject: [PATCH 2/2] doc: fix case Signed-off-by: Dr. Carsten Leue --- array/array.go | 12 +++++------ array/array_test.go | 10 ++++----- array/eq.go | 2 +- array/generic/array.go | 8 ++++---- array/generic/sort.go | 2 +- array/magma.go | 4 ++-- array/magma_test.go | 2 +- array/monoid.go | 4 ++-- array/monoid_test.go | 2 +- array/sequence.go | 4 ++-- array/sequence_test.go | 2 +- array/sort.go | 4 ++-- array/sort_test.go | 2 +- array/traverse.go | 2 +- array/traverse_test.go | 2 +- bytes/monoid.go | 4 ++-- bytes/monoid_test.go | 2 +- cli/apply.go | 4 ++-- cli/contextreaderioeither.go | 21 +++++-------------- cli/either.go | 4 ++-- cli/header.go | 16 +++++++++++++++ cli/identity.go | 4 ++-- cli/option.go | 4 ++-- cli/reader.go | 2 +- cli/readerioeither.go | 6 +++--- cli/tuple.go | 4 ++-- context/ioeither/generic/ioeither.go | 6 +++--- context/ioeither/ioeither.go | 4 ++-- context/reader/array.go | 2 +- context/reader/curry.go | 2 +- context/reader/from.go | 2 +- context/reader/reader.go | 2 +- context/reader/reader_test.go | 4 ++-- context/reader/sequence.go | 4 ++-- context/reader/type.go | 2 +- context/readereither/array.go | 2 +- context/readereither/cancel.go | 2 +- context/readereither/curry.go | 2 +- context/readereither/exec/exec.go | 10 ++++----- context/readereither/from.go | 2 +- context/readereither/reader.go | 8 ++++---- context/readereither/sequence.go | 4 ++-- context/readereither/type.go | 2 +- context/readerio/array.go | 4 ++-- context/readerio/from.go | 4 ++-- context/readerio/reader.go | 2 +- context/readerio/reader_test.go | 6 +++--- context/readerio/sequence.go | 4 ++-- context/readerio/type.go | 2 +- context/readerioeither/cancel.go | 2 +- context/readerioeither/eq.go | 6 +++--- context/readerioeither/exec/exec.go | 10 ++++----- context/readerioeither/file/file.go | 10 ++++----- context/readerioeither/gen.go | 2 +- context/readerioeither/generic/cancel.go | 6 +++--- context/readerioeither/generic/eq.go | 8 ++++---- context/readerioeither/generic/gen.go | 4 ++-- context/readerioeither/generic/reader.go | 14 ++++++------- context/readerioeither/generic/resource.go | 6 +++--- context/readerioeither/generic/sequence.go | 6 +++--- context/readerioeither/generic/traverse.go | 4 ++-- context/readerioeither/http/request.go | 16 +++++++-------- context/readerioeither/reader.go | 14 ++++++------- context/readerioeither/reader_test.go | 6 +++--- context/readerioeither/resource.go | 2 +- context/readerioeither/sequence.go | 4 ++-- context/readerioeither/traverse.go | 2 +- context/readerioeither/type.go | 2 +- either/apply.go | 4 ++-- either/apply_test.go | 4 ++-- either/curry.go | 2 +- either/either.go | 6 +++--- either/either_test.go | 8 ++++---- either/eq.go | 4 ++-- either/exec/exec.go | 8 ++++---- either/gen.go | 4 ++-- either/http/request.go | 2 +- either/logger.go | 4 ++-- either/logger_test.go | 2 +- either/record.go | 4 ++-- either/resource.go | 2 +- either/resource_test.go | 2 +- either/testing/laws.go | 6 +++--- either/testing/laws_test.go | 2 +- either/traverse.go | 2 +- either/traverse_test.go | 4 ++-- eq/eq.go | 2 +- eq/monoid.go | 4 ++-- eq/testing/eq.go | 2 +- errors/conv.go | 2 +- errors/conv_test.go | 4 ++-- errors/identity.go | 2 +- errors/messages.go | 2 +- exec/exec.go | 2 +- go.mod | 2 +- http/types.go | 2 +- http/utils.go | 14 ++++++------- http/utils_test.go | 4 ++-- identity/gen.go | 4 ++-- identity/generic/identity.go | 4 ++-- identity/identity.go | 4 ++-- identity/identity_test.go | 4 ++-- internal/applicative/testing/law.go | 6 +++--- internal/apply/ap.go | 2 +- internal/apply/gen.go | 4 ++-- internal/apply/testing/laws.go | 4 ++-- internal/array/traverse.go | 2 +- internal/chain/chain.go | 2 +- internal/chain/testing/laws.go | 6 +++--- internal/eithert/either.go | 8 ++++---- internal/eq/eq.go | 4 ++-- internal/exec/exec.go | 4 ++-- internal/file/bracket.go | 2 +- internal/file/file.go | 2 +- internal/file/resource.go | 2 +- internal/fromeither/either.go | 8 ++++---- internal/fromio/io.go | 4 ++-- internal/fromioeither/ioeither.go | 6 +++--- internal/fromreader/reader.go | 4 ++-- internal/functor/functor.go | 2 +- internal/functor/testing/laws.go | 4 ++-- internal/monad/testing/laws.go | 6 +++--- internal/readert/reader.go | 4 ++-- internal/record/traverse.go | 2 +- io/apply.go | 6 +++--- io/eq.go | 4 ++-- io/generic/ap.go | 2 +- io/generic/apply.go | 4 ++-- io/generic/eq.go | 4 ++-- io/generic/io.go | 4 ++-- io/generic/logging.go | 2 +- io/generic/retry.go | 4 ++-- io/generic/sequence.go | 4 ++-- io/generic/traverse.go | 6 +++--- io/io.go | 2 +- io/io_test.go | 4 ++-- io/logging.go | 2 +- io/retry.go | 4 ++-- io/retry_test.go | 2 +- io/sequence.go | 4 ++-- io/testing/laws.go | 6 +++--- io/testing/laws_test.go | 2 +- io/traverse.go | 2 +- ioeither/ap.go | 2 +- ioeither/bracket.go | 4 ++-- ioeither/eq.go | 6 +++--- ioeither/exec/exec.go | 8 ++++---- ioeither/exec/exec_test.go | 12 +++++------ ioeither/file/close.go | 2 +- ioeither/file/file.go | 2 +- ioeither/file/readall.go | 2 +- ioeither/file/write.go | 2 +- ioeither/generic/ap.go | 4 ++-- ioeither/generic/bracket.go | 6 +++--- ioeither/generic/eq.go | 6 +++--- ioeither/generic/exec.go | 6 +++--- ioeither/generic/ioeither.go | 18 ++++++++-------- ioeither/generic/resource.go | 6 +++--- ioeither/generic/retry.go | 6 +++--- ioeither/generic/sequence.go | 6 +++--- ioeither/generic/traverse.go | 8 ++++---- ioeither/http/request.go | 12 +++++------ ioeither/http/retry_test.go | 16 +++++++-------- ioeither/ioeither.go | 8 ++++---- ioeither/ioeither_test.go | 12 +++++------ ioeither/retry.go | 6 +++--- ioeither/retry_test.go | 4 ++-- ioeither/sequence.go | 4 ++-- ioeither/testing/laws.go | 8 ++++---- ioeither/testing/laws_test.go | 2 +- ioeither/traverse.go | 2 +- json/json.go | 2 +- json/json_test.go | 4 ++-- json/type.go | 6 +++--- json/type_test.go | 4 ++-- magma/array.go | 4 ++-- main.go | 3 ++- monoid/apply.go | 2 +- monoid/array.go | 2 +- monoid/function.go | 4 ++-- monoid/monoid.go | 2 +- monoid/testing/rules.go | 4 ++-- number/magma.go | 2 +- number/magma_test.go | 2 +- number/monoid.go | 2 +- number/monoid_test.go | 2 +- number/semigroup.go | 2 +- option/apply.go | 4 ++-- option/array.go | 4 ++-- option/array_test.go | 2 +- option/eq.go | 4 ++-- option/gen.go | 4 ++-- option/logger.go | 4 ++-- option/monoid.go | 6 +++--- option/number/number.go | 4 ++-- option/option.go | 2 +- option/option_test.go | 4 ++-- option/record.go | 4 ++-- option/sequence.go | 2 +- option/sequence_test.go | 2 +- option/testing/laws.go | 6 +++--- option/testing/laws_test.go | 2 +- option/type.go | 2 +- ord/monoid.go | 6 +++--- ord/ord.go | 8 ++++---- predicate/contramap.go | 2 +- predicate/monoid.go | 6 +++--- reader/array.go | 2 +- reader/array_test.go | 4 ++-- reader/curry.go | 2 +- reader/gen.go | 2 +- reader/generic/array.go | 4 ++-- reader/generic/curry.go | 2 +- reader/generic/reader.go | 6 +++--- reader/generic/sequence.go | 4 ++-- reader/reader.go | 4 ++-- reader/reader_test.go | 4 ++-- reader/semigroup.go | 4 ++-- reader/sequence.go | 4 ++-- readereither/array.go | 2 +- readereither/array_test.go | 6 +++--- readereither/curry.go | 2 +- readereither/from.go | 2 +- readereither/generic/array.go | 6 +++--- readereither/generic/curry.go | 4 ++-- readereither/generic/from.go | 4 ++-- readereither/generic/reader.go | 16 +++++++-------- readereither/generic/sequence.go | 6 +++--- readereither/reader.go | 8 ++++---- readereither/reader_test.go | 6 +++--- readereither/sequence.go | 4 ++-- readereither/sequence_test.go | 4 ++-- readerio/ap.go | 2 +- readerio/array.go | 4 ++-- readerio/array_test.go | 4 ++-- readerio/eq.go | 4 ++-- readerio/from.go | 4 ++-- readerio/generic/ap.go | 2 +- readerio/generic/array.go | 4 ++-- readerio/generic/eq.go | 4 ++-- readerio/generic/from.go | 2 +- readerio/generic/reader.go | 10 ++++----- readerio/generic/sequence.go | 4 ++-- readerio/reader.go | 6 +++--- readerio/reader_test.go | 4 ++-- readerio/sequence.go | 4 ++-- readerioeither/array_test.go | 6 +++--- readerioeither/bracket.go | 4 ++-- readerioeither/eq.go | 6 +++--- readerioeither/gen.go | 2 +- readerioeither/generic/bracket.go | 6 +++--- readerioeither/generic/eq.go | 6 +++--- readerioeither/generic/gen.go | 4 ++-- readerioeither/generic/reader.go | 24 +++++++++++----------- readerioeither/generic/resource.go | 4 ++-- readerioeither/generic/sequence.go | 6 +++--- readerioeither/generic/traverse.go | 8 ++++---- readerioeither/reader.go | 16 +++++++-------- readerioeither/reader_test.go | 10 ++++----- readerioeither/resource.go | 2 +- readerioeither/sequence.go | 4 ++-- readerioeither/sequence_test.go | 4 ++-- readerioeither/traverse.go | 4 ++-- record/eq.go | 4 ++-- record/generic/eq.go | 2 +- record/generic/monoid.go | 4 ++-- record/generic/record.go | 10 ++++----- record/generic/semigroup.go | 2 +- record/monoid.go | 6 +++--- record/monoid_test.go | 2 +- record/record.go | 8 ++++---- record/record_test.go | 4 ++-- record/semigroup.go | 4 ++-- record/traverse.go | 2 +- record/traverse_test.go | 4 ++-- retry/generic/retry.go | 6 +++--- retry/retry.go | 8 ++++---- samples/readfile/readfile_test.go | 12 +++++------ semigroup/apply.go | 2 +- semigroup/array.go | 2 +- semigroup/ord/semigroup.go | 4 ++-- semigroup/semigroup.go | 4 ++-- string/monoid.go | 2 +- string/monoid_test.go | 2 +- string/semigroup.go | 2 +- string/string.go | 4 ++-- tuple/gen.go | 4 ++-- 287 files changed, 662 insertions(+), 656 deletions(-) create mode 100644 cli/header.go diff --git a/array/array.go b/array/array.go index bb72dad..9271f98 100644 --- a/array/array.go +++ b/array/array.go @@ -1,12 +1,12 @@ package array import ( - G "github.com/ibm/fp-go/array/generic" - F "github.com/ibm/fp-go/function" - "github.com/ibm/fp-go/internal/array" - M "github.com/ibm/fp-go/monoid" - O "github.com/ibm/fp-go/option" - "github.com/ibm/fp-go/tuple" + G "github.com/IBM/fp-go/array/generic" + F "github.com/IBM/fp-go/function" + "github.com/IBM/fp-go/internal/array" + M "github.com/IBM/fp-go/monoid" + O "github.com/IBM/fp-go/option" + "github.com/IBM/fp-go/tuple" ) // From constructs an array from a set of variadic arguments diff --git a/array/array_test.go b/array/array_test.go index 88fbe36..cd1bb19 100644 --- a/array/array_test.go +++ b/array/array_test.go @@ -4,11 +4,11 @@ import ( "strings" "testing" - F "github.com/ibm/fp-go/function" - "github.com/ibm/fp-go/internal/utils" - O "github.com/ibm/fp-go/option" - S "github.com/ibm/fp-go/string" - T "github.com/ibm/fp-go/tuple" + F "github.com/IBM/fp-go/function" + "github.com/IBM/fp-go/internal/utils" + O "github.com/IBM/fp-go/option" + S "github.com/IBM/fp-go/string" + T "github.com/IBM/fp-go/tuple" "github.com/stretchr/testify/assert" ) diff --git a/array/eq.go b/array/eq.go index 49cecbc..db77f88 100644 --- a/array/eq.go +++ b/array/eq.go @@ -1,7 +1,7 @@ package array import ( - E "github.com/ibm/fp-go/eq" + E "github.com/IBM/fp-go/eq" ) func equals[T any](left []T, right []T, eq func(T, T) bool) bool { diff --git a/array/generic/array.go b/array/generic/array.go index f652fa7..d6357ac 100644 --- a/array/generic/array.go +++ b/array/generic/array.go @@ -1,10 +1,10 @@ package generic import ( - F "github.com/ibm/fp-go/function" - "github.com/ibm/fp-go/internal/array" - O "github.com/ibm/fp-go/option" - "github.com/ibm/fp-go/tuple" + F "github.com/IBM/fp-go/function" + "github.com/IBM/fp-go/internal/array" + O "github.com/IBM/fp-go/option" + "github.com/IBM/fp-go/tuple" ) // Of constructs a single element array diff --git a/array/generic/sort.go b/array/generic/sort.go index 4e63cb3..06e3c76 100644 --- a/array/generic/sort.go +++ b/array/generic/sort.go @@ -3,7 +3,7 @@ package generic import ( "sort" - O "github.com/ibm/fp-go/ord" + O "github.com/IBM/fp-go/ord" ) // Sort implements a stable sort on the array given the provided ordering diff --git a/array/magma.go b/array/magma.go index ae82396..1607c47 100644 --- a/array/magma.go +++ b/array/magma.go @@ -1,8 +1,8 @@ package array import ( - F "github.com/ibm/fp-go/function" - M "github.com/ibm/fp-go/magma" + F "github.com/IBM/fp-go/function" + M "github.com/IBM/fp-go/magma" ) func ConcatAll[A any](m M.Magma[A]) func(A) func([]A) A { diff --git a/array/magma_test.go b/array/magma_test.go index 077a186..e279e04 100644 --- a/array/magma_test.go +++ b/array/magma_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - M "github.com/ibm/fp-go/magma" + M "github.com/IBM/fp-go/magma" ) var subInt = M.MakeMagma(func(first int, second int) int { diff --git a/array/monoid.go b/array/monoid.go index c869e60..7c4f4ce 100644 --- a/array/monoid.go +++ b/array/monoid.go @@ -1,8 +1,8 @@ package array import ( - "github.com/ibm/fp-go/internal/array" - M "github.com/ibm/fp-go/monoid" + "github.com/IBM/fp-go/internal/array" + M "github.com/IBM/fp-go/monoid" ) func concat[T any](left, right []T) []T { diff --git a/array/monoid_test.go b/array/monoid_test.go index 5c7cc05..85a3582 100644 --- a/array/monoid_test.go +++ b/array/monoid_test.go @@ -3,7 +3,7 @@ package array import ( "testing" - M "github.com/ibm/fp-go/monoid/testing" + M "github.com/IBM/fp-go/monoid/testing" ) func TestMonoid(t *testing.T) { diff --git a/array/sequence.go b/array/sequence.go index 39eed79..cafcefb 100644 --- a/array/sequence.go +++ b/array/sequence.go @@ -1,8 +1,8 @@ package array import ( - F "github.com/ibm/fp-go/function" - O "github.com/ibm/fp-go/option" + F "github.com/IBM/fp-go/function" + O "github.com/IBM/fp-go/option" ) // We need to pass the members of the applicative explicitly, because golang does neither support higher kinded types nor template methods on structs or interfaces diff --git a/array/sequence_test.go b/array/sequence_test.go index e05a1b6..8e8a3b1 100644 --- a/array/sequence_test.go +++ b/array/sequence_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - O "github.com/ibm/fp-go/option" + O "github.com/IBM/fp-go/option" ) func TestSequenceOption(t *testing.T) { diff --git a/array/sort.go b/array/sort.go index 4b94ffd..ae1434a 100644 --- a/array/sort.go +++ b/array/sort.go @@ -1,8 +1,8 @@ package array import ( - G "github.com/ibm/fp-go/array/generic" - O "github.com/ibm/fp-go/ord" + G "github.com/IBM/fp-go/array/generic" + O "github.com/IBM/fp-go/ord" ) // Sort implements a stable sort on the array given the provided ordering diff --git a/array/sort_test.go b/array/sort_test.go index 124132a..77825f7 100644 --- a/array/sort_test.go +++ b/array/sort_test.go @@ -3,7 +3,7 @@ package array import ( "testing" - O "github.com/ibm/fp-go/ord" + O "github.com/IBM/fp-go/ord" "github.com/stretchr/testify/assert" ) diff --git a/array/traverse.go b/array/traverse.go index d8c4b85..ca0e14d 100644 --- a/array/traverse.go +++ b/array/traverse.go @@ -1,6 +1,6 @@ package array -import "github.com/ibm/fp-go/internal/array" +import "github.com/IBM/fp-go/internal/array" func Traverse[A, B, HKTB, HKTAB, HKTRB any]( fof func([]B) HKTRB, diff --git a/array/traverse_test.go b/array/traverse_test.go index 3586c92..90126eb 100644 --- a/array/traverse_test.go +++ b/array/traverse_test.go @@ -3,7 +3,7 @@ package array import ( "testing" - O "github.com/ibm/fp-go/option" + O "github.com/IBM/fp-go/option" "github.com/stretchr/testify/assert" ) diff --git a/bytes/monoid.go b/bytes/monoid.go index 8e9943d..47c3d9c 100644 --- a/bytes/monoid.go +++ b/bytes/monoid.go @@ -3,8 +3,8 @@ package bytes import ( "bytes" - A "github.com/ibm/fp-go/array" - O "github.com/ibm/fp-go/ord" + A "github.com/IBM/fp-go/array" + O "github.com/IBM/fp-go/ord" ) var ( diff --git a/bytes/monoid_test.go b/bytes/monoid_test.go index e60a815..e00c9a6 100644 --- a/bytes/monoid_test.go +++ b/bytes/monoid_test.go @@ -3,7 +3,7 @@ package bytes import ( "testing" - M "github.com/ibm/fp-go/monoid/testing" + M "github.com/IBM/fp-go/monoid/testing" ) func TestMonoid(t *testing.T) { diff --git a/cli/apply.go b/cli/apply.go index 6ae922a..7fbfef0 100644 --- a/cli/apply.go +++ b/cli/apply.go @@ -380,8 +380,8 @@ func generateApplyHelpers(filename string, count int) error { // print out some helpers fmt.Fprintf(f, ` import ( - F "github.com/ibm/fp-go/function" - T "github.com/ibm/fp-go/tuple" + F "github.com/IBM/fp-go/function" + T "github.com/IBM/fp-go/tuple" ) `) diff --git a/cli/contextreaderioeither.go b/cli/contextreaderioeither.go index 9a0d463..9b1849b 100644 --- a/cli/contextreaderioeither.go +++ b/cli/contextreaderioeither.go @@ -5,7 +5,6 @@ import ( "log" "os" "path/filepath" - "time" C "github.com/urfave/cli/v2" ) @@ -84,34 +83,24 @@ func generateContextReaderIOEitherHelpers(filename string, count int) error { // log log.Printf("Generating code in [%s] for package [%s] with [%d] repetitions ...", filename, pkg, count) - // some header - fmt.Fprintln(f, "// Code generated by go generate; DO NOT EDIT.") - fmt.Fprintln(f, "// This file was generated by robots at") - fmt.Fprintf(f, "// %s\n", time.Now()) - - fmt.Fprintf(f, "package %s\n\n", pkg) + writePackage(f, pkg) fmt.Fprintf(f, ` import ( "context" - G "github.com/ibm/fp-go/context/%s/generic" + G "github.com/IBM/fp-go/context/%s/generic" ) `, pkg) - // some header - fmt.Fprintln(fg, "// Code generated by go generate; DO NOT EDIT.") - fmt.Fprintln(fg, "// This file was generated by robots at") - fmt.Fprintf(fg, "// %s\n", time.Now()) - - fmt.Fprintf(fg, "package generic\n\n") + writePackage(fg, "generic") fmt.Fprintf(fg, ` import ( "context" - E "github.com/ibm/fp-go/either" - RE "github.com/ibm/fp-go/readerioeither/generic" + E "github.com/IBM/fp-go/either" + RE "github.com/IBM/fp-go/readerioeither/generic" ) `) diff --git a/cli/either.go b/cli/either.go index d7988ef..ed7a6a5 100644 --- a/cli/either.go +++ b/cli/either.go @@ -141,8 +141,8 @@ func generateEitherHelpers(filename string, count int) error { fmt.Fprintf(f, ` import ( - A "github.com/ibm/fp-go/internal/apply" - T "github.com/ibm/fp-go/tuple" + A "github.com/IBM/fp-go/internal/apply" + T "github.com/IBM/fp-go/tuple" ) `) diff --git a/cli/header.go b/cli/header.go new file mode 100644 index 0000000..7e1cd7f --- /dev/null +++ b/cli/header.go @@ -0,0 +1,16 @@ +package cli + +import ( + "fmt" + "os" + "time" +) + +func writePackage(f *os.File, pkg string) { + // print package + fmt.Fprintf(f, "package %s\n\n", pkg) + // some header + fmt.Fprintln(f, "// Code generated by go generate; DO NOT EDIT.") + fmt.Fprintln(f, "// This file was generated by robots at") + fmt.Fprintf(f, "// %s\n", time.Now()) +} diff --git a/cli/identity.go b/cli/identity.go index e4e8f25..a950cfe 100644 --- a/cli/identity.go +++ b/cli/identity.go @@ -53,8 +53,8 @@ func generateIdentityHelpers(filename string, count int) error { fmt.Fprintf(f, ` import ( - A "github.com/ibm/fp-go/internal/apply" - T "github.com/ibm/fp-go/tuple" + A "github.com/IBM/fp-go/internal/apply" + T "github.com/IBM/fp-go/tuple" ) `) diff --git a/cli/option.go b/cli/option.go index b1e5b5c..c0cf71a 100644 --- a/cli/option.go +++ b/cli/option.go @@ -139,8 +139,8 @@ func generateOptionHelpers(filename string, count int) error { fmt.Fprintf(f, ` import ( - A "github.com/ibm/fp-go/internal/apply" - T "github.com/ibm/fp-go/tuple" + A "github.com/IBM/fp-go/internal/apply" + T "github.com/IBM/fp-go/tuple" ) `) diff --git a/cli/reader.go b/cli/reader.go index a47f041..e21be5e 100644 --- a/cli/reader.go +++ b/cli/reader.go @@ -123,7 +123,7 @@ func generateReaderHelpers(filename string, count int) error { fmt.Fprintf(f, ` import ( - G "github.com/ibm/fp-go/%s/generic" + G "github.com/IBM/fp-go/%s/generic" ) `, pkg) diff --git a/cli/readerioeither.go b/cli/readerioeither.go index 7e4afc0..2faabfd 100644 --- a/cli/readerioeither.go +++ b/cli/readerioeither.go @@ -160,7 +160,7 @@ func generateReaderIOEitherHelpers(filename string, count int) error { fmt.Fprintf(f, ` import ( - G "github.com/ibm/fp-go/%s/generic" + G "github.com/IBM/fp-go/%s/generic" ) `, pkg) @@ -173,8 +173,8 @@ import ( fmt.Fprintf(fg, ` import ( - E "github.com/ibm/fp-go/either" - RD "github.com/ibm/fp-go/reader/generic" + E "github.com/IBM/fp-go/either" + RD "github.com/IBM/fp-go/reader/generic" ) `) diff --git a/cli/tuple.go b/cli/tuple.go index 20eb464..4adce0f 100644 --- a/cli/tuple.go +++ b/cli/tuple.go @@ -346,8 +346,8 @@ func generateTupleHelpers(filename string, count int) error { fmt.Fprintf(f, ` import ( - M "github.com/ibm/fp-go/monoid" - O "github.com/ibm/fp-go/ord" + M "github.com/IBM/fp-go/monoid" + O "github.com/IBM/fp-go/ord" ) `) diff --git a/context/ioeither/generic/ioeither.go b/context/ioeither/generic/ioeither.go index e95c137..e07d09c 100644 --- a/context/ioeither/generic/ioeither.go +++ b/context/ioeither/generic/ioeither.go @@ -3,9 +3,9 @@ package generic import ( "context" - E "github.com/ibm/fp-go/either" - ET "github.com/ibm/fp-go/either" - IOE "github.com/ibm/fp-go/ioeither/generic" + E "github.com/IBM/fp-go/either" + ET "github.com/IBM/fp-go/either" + IOE "github.com/IBM/fp-go/ioeither/generic" ) // withContext wraps an existing IOEither and performs a context check for cancellation before delegating diff --git a/context/ioeither/ioeither.go b/context/ioeither/ioeither.go index 99886da..0dac5d7 100644 --- a/context/ioeither/ioeither.go +++ b/context/ioeither/ioeither.go @@ -3,8 +3,8 @@ package ioeither import ( "context" - G "github.com/ibm/fp-go/context/ioeither/generic" - IOE "github.com/ibm/fp-go/ioeither" + G "github.com/IBM/fp-go/context/ioeither/generic" + IOE "github.com/IBM/fp-go/ioeither" ) // withContext wraps an existing IOEither and performs a context check for cancellation before delegating diff --git a/context/reader/array.go b/context/reader/array.go index e235aeb..c43a5ec 100644 --- a/context/reader/array.go +++ b/context/reader/array.go @@ -16,7 +16,7 @@ package reader import ( - R "github.com/ibm/fp-go/reader/generic" + R "github.com/IBM/fp-go/reader/generic" ) // TraverseArray transforms an array diff --git a/context/reader/curry.go b/context/reader/curry.go index 846db4c..084d0d5 100644 --- a/context/reader/curry.go +++ b/context/reader/curry.go @@ -18,7 +18,7 @@ package reader import ( "context" - R "github.com/ibm/fp-go/reader/generic" + R "github.com/IBM/fp-go/reader/generic" ) // these functions curry a golang function with the context as the firsr parameter into a either reader with the context as the last parameter diff --git a/context/reader/from.go b/context/reader/from.go index a389412..5d45db6 100644 --- a/context/reader/from.go +++ b/context/reader/from.go @@ -3,7 +3,7 @@ package reader import ( "context" - R "github.com/ibm/fp-go/reader/generic" + R "github.com/IBM/fp-go/reader/generic" ) // these functions curry a golang function with the context as the firsr parameter into a either reader with the context as the last parameter diff --git a/context/reader/reader.go b/context/reader/reader.go index 5658b6d..8dd10ac 100644 --- a/context/reader/reader.go +++ b/context/reader/reader.go @@ -3,7 +3,7 @@ package reader import ( "context" - R "github.com/ibm/fp-go/reader/generic" + R "github.com/IBM/fp-go/reader/generic" ) func MonadMap[A, B any](fa Reader[A], f func(A) B) Reader[B] { diff --git a/context/reader/reader_test.go b/context/reader/reader_test.go index edcccd2..2347ffa 100644 --- a/context/reader/reader_test.go +++ b/context/reader/reader_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - F "github.com/ibm/fp-go/function" - T "github.com/ibm/fp-go/tuple" + F "github.com/IBM/fp-go/function" + T "github.com/IBM/fp-go/tuple" "github.com/stretchr/testify/assert" ) diff --git a/context/reader/sequence.go b/context/reader/sequence.go index 3e9b724..07f411f 100644 --- a/context/reader/sequence.go +++ b/context/reader/sequence.go @@ -1,8 +1,8 @@ package reader import ( - R "github.com/ibm/fp-go/reader/generic" - T "github.com/ibm/fp-go/tuple" + R "github.com/IBM/fp-go/reader/generic" + T "github.com/IBM/fp-go/tuple" ) // SequenceT converts n inputs of higher kinded types into a higher kinded types of n strongly typed values, represented as a tuple diff --git a/context/reader/type.go b/context/reader/type.go index 0951b32..6abbe7c 100644 --- a/context/reader/type.go +++ b/context/reader/type.go @@ -4,7 +4,7 @@ package reader import ( "context" - R "github.com/ibm/fp-go/reader" + R "github.com/IBM/fp-go/reader" ) // Reader is a specialization of the Reader monad assuming a golang context as the context of the monad diff --git a/context/readereither/array.go b/context/readereither/array.go index f2882ae..cca55fc 100644 --- a/context/readereither/array.go +++ b/context/readereither/array.go @@ -1,7 +1,7 @@ package readereither import ( - RE "github.com/ibm/fp-go/readereither/generic" + RE "github.com/IBM/fp-go/readereither/generic" ) // TraverseArray transforms an array diff --git a/context/readereither/cancel.go b/context/readereither/cancel.go index 9f19370..b425b2e 100644 --- a/context/readereither/cancel.go +++ b/context/readereither/cancel.go @@ -3,7 +3,7 @@ package readereither import ( "context" - E "github.com/ibm/fp-go/either" + E "github.com/IBM/fp-go/either" ) // withContext wraps an existing ReaderEither and performs a context check for cancellation before deletating diff --git a/context/readereither/curry.go b/context/readereither/curry.go index 4a70042..f0ee812 100644 --- a/context/readereither/curry.go +++ b/context/readereither/curry.go @@ -3,7 +3,7 @@ package readereither import ( "context" - RE "github.com/ibm/fp-go/readereither/generic" + RE "github.com/IBM/fp-go/readereither/generic" ) // these functions curry a golang function with the context as the firsr parameter into a either reader with the context as the last parameter diff --git a/context/readereither/exec/exec.go b/context/readereither/exec/exec.go index 2779163..672be79 100644 --- a/context/readereither/exec/exec.go +++ b/context/readereither/exec/exec.go @@ -3,11 +3,11 @@ package exec import ( "context" - RE "github.com/ibm/fp-go/context/readereither" - E "github.com/ibm/fp-go/either" - "github.com/ibm/fp-go/exec" - F "github.com/ibm/fp-go/function" - GE "github.com/ibm/fp-go/internal/exec" + RE "github.com/IBM/fp-go/context/readereither" + E "github.com/IBM/fp-go/either" + "github.com/IBM/fp-go/exec" + F "github.com/IBM/fp-go/function" + GE "github.com/IBM/fp-go/internal/exec" ) var ( diff --git a/context/readereither/from.go b/context/readereither/from.go index 90774e4..5127c49 100644 --- a/context/readereither/from.go +++ b/context/readereither/from.go @@ -3,7 +3,7 @@ package readereither import ( "context" - RE "github.com/ibm/fp-go/readereither/generic" + RE "github.com/IBM/fp-go/readereither/generic" ) // these functions curry a golang function with the context as the firsr parameter into a either reader with the context as the last parameter diff --git a/context/readereither/reader.go b/context/readereither/reader.go index dfc4324..175b0e2 100644 --- a/context/readereither/reader.go +++ b/context/readereither/reader.go @@ -3,10 +3,10 @@ package readereither import ( "context" - R "github.com/ibm/fp-go/context/reader" - ET "github.com/ibm/fp-go/either" - O "github.com/ibm/fp-go/option" - RE "github.com/ibm/fp-go/readereither/generic" + R "github.com/IBM/fp-go/context/reader" + ET "github.com/IBM/fp-go/either" + O "github.com/IBM/fp-go/option" + RE "github.com/IBM/fp-go/readereither/generic" ) func MakeReaderEither[A any](f func(context.Context) ET.Either[error, A]) ReaderEither[A] { diff --git a/context/readereither/sequence.go b/context/readereither/sequence.go index a5256e8..62d09ae 100644 --- a/context/readereither/sequence.go +++ b/context/readereither/sequence.go @@ -1,8 +1,8 @@ package readereither import ( - RE "github.com/ibm/fp-go/readereither/generic" - T "github.com/ibm/fp-go/tuple" + RE "github.com/IBM/fp-go/readereither/generic" + T "github.com/IBM/fp-go/tuple" ) // SequenceT converts n inputs of higher kinded types into a higher kinded types of n strongly typed values, represented as a tuple diff --git a/context/readereither/type.go b/context/readereither/type.go index 2bd0f64..c149b55 100644 --- a/context/readereither/type.go +++ b/context/readereither/type.go @@ -4,7 +4,7 @@ package readereither import ( "context" - RE "github.com/ibm/fp-go/readereither" + RE "github.com/IBM/fp-go/readereither" ) // ReaderEither is a specialization of the Reader monad for the typical golang scenario diff --git a/context/readerio/array.go b/context/readerio/array.go index 572da9b..f329370 100644 --- a/context/readerio/array.go +++ b/context/readerio/array.go @@ -1,8 +1,8 @@ package readerio import ( - IO "github.com/ibm/fp-go/io" - R "github.com/ibm/fp-go/readerio/generic" + IO "github.com/IBM/fp-go/io" + R "github.com/IBM/fp-go/readerio/generic" ) // TraverseArray transforms an array diff --git a/context/readerio/from.go b/context/readerio/from.go index 286b4f9..9ad3121 100644 --- a/context/readerio/from.go +++ b/context/readerio/from.go @@ -3,8 +3,8 @@ package readerio import ( "context" - IO "github.com/ibm/fp-go/io" - R "github.com/ibm/fp-go/readerio/generic" + IO "github.com/IBM/fp-go/io" + R "github.com/IBM/fp-go/readerio/generic" ) // these functions curry a golang function with the context as the firsr parameter into a either reader with the context as the last parameter diff --git a/context/readerio/reader.go b/context/readerio/reader.go index d4b1034..09067e5 100644 --- a/context/readerio/reader.go +++ b/context/readerio/reader.go @@ -3,7 +3,7 @@ package readerio import ( "context" - R "github.com/ibm/fp-go/readerio/generic" + R "github.com/IBM/fp-go/readerio/generic" ) func MonadMap[A, B any](fa ReaderIO[A], f func(A) B) ReaderIO[B] { diff --git a/context/readerio/reader_test.go b/context/readerio/reader_test.go index 46018da..8619afd 100644 --- a/context/readerio/reader_test.go +++ b/context/readerio/reader_test.go @@ -6,9 +6,9 @@ import ( "strings" "testing" - F "github.com/ibm/fp-go/function" - IO "github.com/ibm/fp-go/io" - T "github.com/ibm/fp-go/tuple" + F "github.com/IBM/fp-go/function" + IO "github.com/IBM/fp-go/io" + T "github.com/IBM/fp-go/tuple" "github.com/stretchr/testify/assert" ) diff --git a/context/readerio/sequence.go b/context/readerio/sequence.go index 741c6bb..5b9166f 100644 --- a/context/readerio/sequence.go +++ b/context/readerio/sequence.go @@ -1,8 +1,8 @@ package readerio import ( - R "github.com/ibm/fp-go/readerio/generic" - T "github.com/ibm/fp-go/tuple" + R "github.com/IBM/fp-go/readerio/generic" + T "github.com/IBM/fp-go/tuple" ) // SequenceT converts n inputs of higher kinded types into a higher kinded types of n strongly typed values, represented as a tuple diff --git a/context/readerio/type.go b/context/readerio/type.go index f4d5684..bc53ce5 100644 --- a/context/readerio/type.go +++ b/context/readerio/type.go @@ -4,7 +4,7 @@ package readerio import ( "context" - R "github.com/ibm/fp-go/readerio" + R "github.com/IBM/fp-go/readerio" ) // ReaderIO is a specialization of the ReaderIO monad assuming a golang context as the context of the monad diff --git a/context/readerioeither/cancel.go b/context/readerioeither/cancel.go index 7f61ada..fb33f31 100644 --- a/context/readerioeither/cancel.go +++ b/context/readerioeither/cancel.go @@ -1,7 +1,7 @@ package readerioeither import ( - G "github.com/ibm/fp-go/context/readerioeither/generic" + G "github.com/IBM/fp-go/context/readerioeither/generic" ) // WithContext wraps an existing ReaderIOEither and performs a context check for cancellation before delegating diff --git a/context/readerioeither/eq.go b/context/readerioeither/eq.go index aad43c1..51ddc52 100644 --- a/context/readerioeither/eq.go +++ b/context/readerioeither/eq.go @@ -3,9 +3,9 @@ package readerioeither import ( "context" - G "github.com/ibm/fp-go/context/readerioeither/generic" - ET "github.com/ibm/fp-go/either" - EQ "github.com/ibm/fp-go/eq" + G "github.com/IBM/fp-go/context/readerioeither/generic" + ET "github.com/IBM/fp-go/either" + EQ "github.com/IBM/fp-go/eq" ) // Eq implements the equals predicate for values contained in the IOEither monad diff --git a/context/readerioeither/exec/exec.go b/context/readerioeither/exec/exec.go index 83a1312..09579fc 100644 --- a/context/readerioeither/exec/exec.go +++ b/context/readerioeither/exec/exec.go @@ -3,11 +3,11 @@ package exec import ( "context" - RIOE "github.com/ibm/fp-go/context/readerioeither" - "github.com/ibm/fp-go/exec" - F "github.com/ibm/fp-go/function" - GE "github.com/ibm/fp-go/internal/exec" - IOE "github.com/ibm/fp-go/ioeither" + RIOE "github.com/IBM/fp-go/context/readerioeither" + "github.com/IBM/fp-go/exec" + F "github.com/IBM/fp-go/function" + GE "github.com/IBM/fp-go/internal/exec" + IOE "github.com/IBM/fp-go/ioeither" ) var ( diff --git a/context/readerioeither/file/file.go b/context/readerioeither/file/file.go index 81826d6..780240d 100644 --- a/context/readerioeither/file/file.go +++ b/context/readerioeither/file/file.go @@ -5,11 +5,11 @@ import ( "io" "os" - RIOE "github.com/ibm/fp-go/context/readerioeither" - ET "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" - "github.com/ibm/fp-go/internal/file" - IOE "github.com/ibm/fp-go/ioeither" + RIOE "github.com/IBM/fp-go/context/readerioeither" + ET "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" + "github.com/IBM/fp-go/internal/file" + IOE "github.com/IBM/fp-go/ioeither" ) var ( diff --git a/context/readerioeither/gen.go b/context/readerioeither/gen.go index 156e5f4..1fe27c2 100644 --- a/context/readerioeither/gen.go +++ b/context/readerioeither/gen.go @@ -7,7 +7,7 @@ package readerioeither import ( "context" - G "github.com/ibm/fp-go/context/readerioeither/generic" + G "github.com/IBM/fp-go/context/readerioeither/generic" ) // Eitherize0 converts a function with 0 parameters returning a tuple into a function with 0 parameters returning a [ReaderIOEither[R]] diff --git a/context/readerioeither/generic/cancel.go b/context/readerioeither/generic/cancel.go index 5f3a1fd..33d5663 100644 --- a/context/readerioeither/generic/cancel.go +++ b/context/readerioeither/generic/cancel.go @@ -3,9 +3,9 @@ package generic import ( "context" - CIOE "github.com/ibm/fp-go/context/ioeither/generic" - E "github.com/ibm/fp-go/either" - IOE "github.com/ibm/fp-go/ioeither/generic" + CIOE "github.com/IBM/fp-go/context/ioeither/generic" + E "github.com/IBM/fp-go/either" + IOE "github.com/IBM/fp-go/ioeither/generic" ) // withContext wraps an existing ReaderIOEither and performs a context check for cancellation before delegating diff --git a/context/readerioeither/generic/eq.go b/context/readerioeither/generic/eq.go index 91ec359..83cdb95 100644 --- a/context/readerioeither/generic/eq.go +++ b/context/readerioeither/generic/eq.go @@ -3,10 +3,10 @@ package generic import ( "context" - E "github.com/ibm/fp-go/either" - ET "github.com/ibm/fp-go/either" - EQ "github.com/ibm/fp-go/eq" - G "github.com/ibm/fp-go/readerioeither/generic" + E "github.com/IBM/fp-go/either" + ET "github.com/IBM/fp-go/either" + EQ "github.com/IBM/fp-go/eq" + G "github.com/IBM/fp-go/readerioeither/generic" ) // Eq implements the equals predicate for values contained in the IOEither monad diff --git a/context/readerioeither/generic/gen.go b/context/readerioeither/generic/gen.go index 421a7df..75c4b70 100644 --- a/context/readerioeither/generic/gen.go +++ b/context/readerioeither/generic/gen.go @@ -7,8 +7,8 @@ package generic import ( "context" - E "github.com/ibm/fp-go/either" - RE "github.com/ibm/fp-go/readerioeither/generic" + E "github.com/IBM/fp-go/either" + RE "github.com/IBM/fp-go/readerioeither/generic" ) // Eitherize0 converts a function with 0 parameters returning a tuple into a function with 0 parameters returning a [GRA] diff --git a/context/readerioeither/generic/reader.go b/context/readerioeither/generic/reader.go index 0473c93..8b9a56f 100644 --- a/context/readerioeither/generic/reader.go +++ b/context/readerioeither/generic/reader.go @@ -4,13 +4,13 @@ import ( "context" "time" - E "github.com/ibm/fp-go/either" - ER "github.com/ibm/fp-go/errors" - F "github.com/ibm/fp-go/function" - IO "github.com/ibm/fp-go/io/generic" - IOE "github.com/ibm/fp-go/ioeither/generic" - O "github.com/ibm/fp-go/option" - RIE "github.com/ibm/fp-go/readerioeither/generic" + E "github.com/IBM/fp-go/either" + ER "github.com/IBM/fp-go/errors" + F "github.com/IBM/fp-go/function" + IO "github.com/IBM/fp-go/io/generic" + IOE "github.com/IBM/fp-go/ioeither/generic" + O "github.com/IBM/fp-go/option" + RIE "github.com/IBM/fp-go/readerioeither/generic" ) func FromEither[ diff --git a/context/readerioeither/generic/resource.go b/context/readerioeither/generic/resource.go index e9d78cc..ea23087 100644 --- a/context/readerioeither/generic/resource.go +++ b/context/readerioeither/generic/resource.go @@ -3,9 +3,9 @@ package generic import ( "context" - E "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" - RIE "github.com/ibm/fp-go/readerioeither/generic" + E "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" + RIE "github.com/IBM/fp-go/readerioeither/generic" ) // WithResource constructs a function that creates a resource, then operates on it and then releases the resource diff --git a/context/readerioeither/generic/sequence.go b/context/readerioeither/generic/sequence.go index 10c44a4..b6681de 100644 --- a/context/readerioeither/generic/sequence.go +++ b/context/readerioeither/generic/sequence.go @@ -3,9 +3,9 @@ package generic import ( "context" - E "github.com/ibm/fp-go/either" - RE "github.com/ibm/fp-go/readerioeither/generic" - T "github.com/ibm/fp-go/tuple" + E "github.com/IBM/fp-go/either" + RE "github.com/IBM/fp-go/readerioeither/generic" + T "github.com/IBM/fp-go/tuple" ) // SequenceT converts n inputs of higher kinded types into a higher kinded types of n strongly typed values, represented as a tuple diff --git a/context/readerioeither/generic/traverse.go b/context/readerioeither/generic/traverse.go index 3725ffd..4e79854 100644 --- a/context/readerioeither/generic/traverse.go +++ b/context/readerioeither/generic/traverse.go @@ -3,8 +3,8 @@ package generic import ( "context" - E "github.com/ibm/fp-go/either" - RE "github.com/ibm/fp-go/readerioeither/generic" + E "github.com/IBM/fp-go/either" + RE "github.com/IBM/fp-go/readerioeither/generic" ) // TraverseArray transforms an array diff --git a/context/readerioeither/http/request.go b/context/readerioeither/http/request.go index 200f218..665a483 100644 --- a/context/readerioeither/http/request.go +++ b/context/readerioeither/http/request.go @@ -4,14 +4,14 @@ import ( "io" "net/http" - B "github.com/ibm/fp-go/bytes" - RIOE "github.com/ibm/fp-go/context/readerioeither" - F "github.com/ibm/fp-go/function" - H "github.com/ibm/fp-go/http" - IOE "github.com/ibm/fp-go/ioeither" - IOEF "github.com/ibm/fp-go/ioeither/file" - J "github.com/ibm/fp-go/json" - T "github.com/ibm/fp-go/tuple" + B "github.com/IBM/fp-go/bytes" + RIOE "github.com/IBM/fp-go/context/readerioeither" + F "github.com/IBM/fp-go/function" + H "github.com/IBM/fp-go/http" + IOE "github.com/IBM/fp-go/ioeither" + IOEF "github.com/IBM/fp-go/ioeither/file" + J "github.com/IBM/fp-go/json" + T "github.com/IBM/fp-go/tuple" ) type ( diff --git a/context/readerioeither/reader.go b/context/readerioeither/reader.go index f3aed5d..09428cb 100644 --- a/context/readerioeither/reader.go +++ b/context/readerioeither/reader.go @@ -4,13 +4,13 @@ import ( "context" "time" - R "github.com/ibm/fp-go/context/reader" - RIO "github.com/ibm/fp-go/context/readerio" - G "github.com/ibm/fp-go/context/readerioeither/generic" - ET "github.com/ibm/fp-go/either" - IO "github.com/ibm/fp-go/io" - IOE "github.com/ibm/fp-go/ioeither" - O "github.com/ibm/fp-go/option" + R "github.com/IBM/fp-go/context/reader" + RIO "github.com/IBM/fp-go/context/readerio" + G "github.com/IBM/fp-go/context/readerioeither/generic" + ET "github.com/IBM/fp-go/either" + IO "github.com/IBM/fp-go/io" + IOE "github.com/IBM/fp-go/ioeither" + O "github.com/IBM/fp-go/option" ) func FromEither[A any](e ET.Either[error, A]) ReaderIOEither[A] { diff --git a/context/readerioeither/reader_test.go b/context/readerioeither/reader_test.go index ee6912b..2c67569 100644 --- a/context/readerioeither/reader_test.go +++ b/context/readerioeither/reader_test.go @@ -6,9 +6,9 @@ import ( "testing" "time" - E "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" - "github.com/ibm/fp-go/internal/utils" + E "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" + "github.com/IBM/fp-go/internal/utils" "github.com/stretchr/testify/assert" ) diff --git a/context/readerioeither/resource.go b/context/readerioeither/resource.go index 1a058b5..6b1cb70 100644 --- a/context/readerioeither/resource.go +++ b/context/readerioeither/resource.go @@ -1,7 +1,7 @@ package readerioeither import ( - G "github.com/ibm/fp-go/context/readerioeither/generic" + G "github.com/IBM/fp-go/context/readerioeither/generic" ) // WithResource constructs a function that creates a resource, then operates on it and then releases the resource diff --git a/context/readerioeither/sequence.go b/context/readerioeither/sequence.go index 3fb2cad..598b19a 100644 --- a/context/readerioeither/sequence.go +++ b/context/readerioeither/sequence.go @@ -1,8 +1,8 @@ package readerioeither import ( - G "github.com/ibm/fp-go/context/readerioeither/generic" - T "github.com/ibm/fp-go/tuple" + G "github.com/IBM/fp-go/context/readerioeither/generic" + T "github.com/IBM/fp-go/tuple" ) // SequenceT converts n inputs of higher kinded types into a higher kinded types of n strongly typed values, represented as a tuple diff --git a/context/readerioeither/traverse.go b/context/readerioeither/traverse.go index 8abf52d..bbf24dc 100644 --- a/context/readerioeither/traverse.go +++ b/context/readerioeither/traverse.go @@ -1,7 +1,7 @@ package readerioeither import ( - G "github.com/ibm/fp-go/context/readerioeither/generic" + G "github.com/IBM/fp-go/context/readerioeither/generic" ) // TraverseArray transforms an array diff --git a/context/readerioeither/type.go b/context/readerioeither/type.go index 74e8315..31b05f1 100644 --- a/context/readerioeither/type.go +++ b/context/readerioeither/type.go @@ -4,7 +4,7 @@ package readerioeither import ( "context" - RE "github.com/ibm/fp-go/readerioeither" + RE "github.com/IBM/fp-go/readerioeither" ) // ReaderIOEither is a specialization of the Reader monad for the typical golang scenario diff --git a/either/apply.go b/either/apply.go index b9b2710..3bbd97a 100644 --- a/either/apply.go +++ b/either/apply.go @@ -1,8 +1,8 @@ package either import ( - M "github.com/ibm/fp-go/monoid" - S "github.com/ibm/fp-go/semigroup" + M "github.com/IBM/fp-go/monoid" + S "github.com/IBM/fp-go/semigroup" ) func ApplySemigroup[E, A any](s S.Semigroup[A]) S.Semigroup[Either[E, A]] { diff --git a/either/apply_test.go b/either/apply_test.go index d84f778..3f55f67 100644 --- a/either/apply_test.go +++ b/either/apply_test.go @@ -3,8 +3,8 @@ package either import ( "testing" - M "github.com/ibm/fp-go/monoid/testing" - N "github.com/ibm/fp-go/number" + M "github.com/IBM/fp-go/monoid/testing" + N "github.com/IBM/fp-go/number" "github.com/stretchr/testify/assert" ) diff --git a/either/curry.go b/either/curry.go index a08c0a2..381a900 100644 --- a/either/curry.go +++ b/either/curry.go @@ -1,7 +1,7 @@ package either import ( - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" ) // these function curry a golang function that returns an error into its curried version that returns an either diff --git a/either/either.go b/either/either.go index 0254d9b..1f4d0f3 100644 --- a/either/either.go +++ b/either/either.go @@ -5,9 +5,9 @@ package either import ( - E "github.com/ibm/fp-go/errors" - F "github.com/ibm/fp-go/function" - O "github.com/ibm/fp-go/option" + E "github.com/IBM/fp-go/errors" + F "github.com/IBM/fp-go/function" + O "github.com/IBM/fp-go/option" ) // Of is equivalent to [Right] diff --git a/either/either_test.go b/either/either_test.go index f6bb079..306a77a 100644 --- a/either/either_test.go +++ b/either/either_test.go @@ -4,10 +4,10 @@ import ( "errors" "testing" - F "github.com/ibm/fp-go/function" - "github.com/ibm/fp-go/internal/utils" - O "github.com/ibm/fp-go/option" - S "github.com/ibm/fp-go/string" + F "github.com/IBM/fp-go/function" + "github.com/IBM/fp-go/internal/utils" + O "github.com/IBM/fp-go/option" + S "github.com/IBM/fp-go/string" "github.com/stretchr/testify/assert" ) diff --git a/either/eq.go b/either/eq.go index 9eda518..dbd0e8f 100644 --- a/either/eq.go +++ b/either/eq.go @@ -1,8 +1,8 @@ package either import ( - EQ "github.com/ibm/fp-go/eq" - F "github.com/ibm/fp-go/function" + EQ "github.com/IBM/fp-go/eq" + F "github.com/IBM/fp-go/function" ) // Constructs an equal predicate for an `Either` diff --git a/either/exec/exec.go b/either/exec/exec.go index 5d6d7bf..484517b 100644 --- a/either/exec/exec.go +++ b/either/exec/exec.go @@ -3,10 +3,10 @@ package exec import ( "context" - E "github.com/ibm/fp-go/either" - "github.com/ibm/fp-go/exec" - F "github.com/ibm/fp-go/function" - GE "github.com/ibm/fp-go/internal/exec" + E "github.com/IBM/fp-go/either" + "github.com/IBM/fp-go/exec" + F "github.com/IBM/fp-go/function" + GE "github.com/IBM/fp-go/internal/exec" ) var ( diff --git a/either/gen.go b/either/gen.go index b3f73fd..3847feb 100644 --- a/either/gen.go +++ b/either/gen.go @@ -5,8 +5,8 @@ package either import ( - A "github.com/ibm/fp-go/internal/apply" - T "github.com/ibm/fp-go/tuple" + A "github.com/IBM/fp-go/internal/apply" + T "github.com/IBM/fp-go/tuple" ) // Eitherize0 converts a function with 0 parameters returning a tuple into a function with 0 parameters returning an Either diff --git a/either/http/request.go b/either/http/request.go index c9556de..0a0a704 100644 --- a/either/http/request.go +++ b/either/http/request.go @@ -4,7 +4,7 @@ import ( "bytes" "net/http" - E "github.com/ibm/fp-go/either" + E "github.com/IBM/fp-go/either" ) var ( diff --git a/either/logger.go b/either/logger.go index cb20d9d..7274bed 100644 --- a/either/logger.go +++ b/either/logger.go @@ -3,8 +3,8 @@ package either import ( "log" - F "github.com/ibm/fp-go/function" - L "github.com/ibm/fp-go/logging" + F "github.com/IBM/fp-go/function" + L "github.com/IBM/fp-go/logging" ) func _log[E, A any](left func(string, ...any), right func(string, ...any), prefix string) func(Either[E, A]) Either[E, A] { diff --git a/either/logger_test.go b/either/logger_test.go index 1097d94..38a4449 100644 --- a/either/logger_test.go +++ b/either/logger_test.go @@ -3,7 +3,7 @@ package either import ( "testing" - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" "github.com/stretchr/testify/assert" ) diff --git a/either/record.go b/either/record.go index 01775a8..624030a 100644 --- a/either/record.go +++ b/either/record.go @@ -1,8 +1,8 @@ package either import ( - F "github.com/ibm/fp-go/function" - RR "github.com/ibm/fp-go/internal/record" + F "github.com/IBM/fp-go/function" + RR "github.com/IBM/fp-go/internal/record" ) // TraverseRecord transforms a record of options into an option of a record diff --git a/either/resource.go b/either/resource.go index 04e5873..eb1a37e 100644 --- a/either/resource.go +++ b/either/resource.go @@ -1,7 +1,7 @@ package either import ( - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" ) // constructs a function that creates a resource, then operates on it and then releases the resource diff --git a/either/resource_test.go b/either/resource_test.go index a68e92b..c8271ee 100644 --- a/either/resource_test.go +++ b/either/resource_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" "github.com/stretchr/testify/assert" ) diff --git a/either/testing/laws.go b/either/testing/laws.go index 3b93860..222f3d9 100644 --- a/either/testing/laws.go +++ b/either/testing/laws.go @@ -3,9 +3,9 @@ package testing import ( "testing" - ET "github.com/ibm/fp-go/either" - EQ "github.com/ibm/fp-go/eq" - L "github.com/ibm/fp-go/internal/monad/testing" + ET "github.com/IBM/fp-go/either" + EQ "github.com/IBM/fp-go/eq" + L "github.com/IBM/fp-go/internal/monad/testing" ) // AssertLaws asserts the apply monad laws for the `Either` monad diff --git a/either/testing/laws_test.go b/either/testing/laws_test.go index d3a35c8..48ed499 100644 --- a/either/testing/laws_test.go +++ b/either/testing/laws_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - EQ "github.com/ibm/fp-go/eq" + EQ "github.com/IBM/fp-go/eq" "github.com/stretchr/testify/assert" ) diff --git a/either/traverse.go b/either/traverse.go index 617c354..b024202 100644 --- a/either/traverse.go +++ b/either/traverse.go @@ -1,7 +1,7 @@ package either import ( - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" ) /* diff --git a/either/traverse_test.go b/either/traverse_test.go index b1062ea..672091d 100644 --- a/either/traverse_test.go +++ b/either/traverse_test.go @@ -3,8 +3,8 @@ package either import ( "testing" - F "github.com/ibm/fp-go/function" - O "github.com/ibm/fp-go/option" + F "github.com/IBM/fp-go/function" + O "github.com/IBM/fp-go/option" "github.com/stretchr/testify/assert" ) diff --git a/eq/eq.go b/eq/eq.go index 019479a..72dc5e6 100644 --- a/eq/eq.go +++ b/eq/eq.go @@ -1,7 +1,7 @@ package eq import ( - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" ) type Eq[T any] interface { diff --git a/eq/monoid.go b/eq/monoid.go index 9e221c9..d6ceaf7 100644 --- a/eq/monoid.go +++ b/eq/monoid.go @@ -1,8 +1,8 @@ package eq import ( - M "github.com/ibm/fp-go/monoid" - S "github.com/ibm/fp-go/semigroup" + M "github.com/IBM/fp-go/monoid" + S "github.com/IBM/fp-go/semigroup" ) func Semigroup[A any]() S.Semigroup[Eq[A]] { diff --git a/eq/testing/eq.go b/eq/testing/eq.go index 4f7d81d..66d5c44 100644 --- a/eq/testing/eq.go +++ b/eq/testing/eq.go @@ -1,7 +1,7 @@ package testing import ( - EQ "github.com/ibm/fp-go/eq" + EQ "github.com/IBM/fp-go/eq" "github.com/stretchr/testify/assert" ) diff --git a/errors/conv.go b/errors/conv.go index 0e88c32..f8bfab7 100644 --- a/errors/conv.go +++ b/errors/conv.go @@ -3,7 +3,7 @@ package errors import ( "errors" - O "github.com/ibm/fp-go/option" + O "github.com/IBM/fp-go/option" ) // As tries to extract the error of desired type from the given error diff --git a/errors/conv_test.go b/errors/conv_test.go index 4fbfdd0..58eb7a6 100644 --- a/errors/conv_test.go +++ b/errors/conv_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - F "github.com/ibm/fp-go/function" - O "github.com/ibm/fp-go/option" + F "github.com/IBM/fp-go/function" + O "github.com/IBM/fp-go/option" "github.com/stretchr/testify/assert" ) diff --git a/errors/identity.go b/errors/identity.go index 2e11e69..d1eae4b 100644 --- a/errors/identity.go +++ b/errors/identity.go @@ -1,7 +1,7 @@ package errors import ( - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" ) var IdentityError = F.Identity[error] diff --git a/errors/messages.go b/errors/messages.go index 553d0b0..f6e0027 100644 --- a/errors/messages.go +++ b/errors/messages.go @@ -3,7 +3,7 @@ package errors import ( "fmt" - A "github.com/ibm/fp-go/array" + A "github.com/IBM/fp-go/array" ) // OnNone generates a nullary function that produces a formatted error diff --git a/exec/exec.go b/exec/exec.go index b196292..826486d 100644 --- a/exec/exec.go +++ b/exec/exec.go @@ -1,7 +1,7 @@ package exec import ( - T "github.com/ibm/fp-go/tuple" + T "github.com/IBM/fp-go/tuple" ) type ( diff --git a/go.mod b/go.mod index 6e0bac5..693c48f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/ibm/fp-go +module github.com/IBM/fp-go go 1.20 diff --git a/http/types.go b/http/types.go index 60dbc00..194faa3 100644 --- a/http/types.go +++ b/http/types.go @@ -3,7 +3,7 @@ package http import ( H "net/http" - T "github.com/ibm/fp-go/tuple" + T "github.com/IBM/fp-go/tuple" ) type ( diff --git a/http/utils.go b/http/utils.go index 0b542f8..b5e889c 100644 --- a/http/utils.go +++ b/http/utils.go @@ -7,13 +7,13 @@ import ( H "net/http" "regexp" - A "github.com/ibm/fp-go/array" - E "github.com/ibm/fp-go/either" - "github.com/ibm/fp-go/errors" - F "github.com/ibm/fp-go/function" - O "github.com/ibm/fp-go/option" - R "github.com/ibm/fp-go/record/generic" - T "github.com/ibm/fp-go/tuple" + A "github.com/IBM/fp-go/array" + E "github.com/IBM/fp-go/either" + "github.com/IBM/fp-go/errors" + F "github.com/IBM/fp-go/function" + O "github.com/IBM/fp-go/option" + R "github.com/IBM/fp-go/record/generic" + T "github.com/IBM/fp-go/tuple" ) type ( diff --git a/http/utils_test.go b/http/utils_test.go index ed515ab..c23da72 100644 --- a/http/utils_test.go +++ b/http/utils_test.go @@ -3,8 +3,8 @@ package http import ( "testing" - E "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" + E "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" "github.com/stretchr/testify/assert" ) diff --git a/identity/gen.go b/identity/gen.go index 8fc54d8..c2acc45 100644 --- a/identity/gen.go +++ b/identity/gen.go @@ -5,8 +5,8 @@ package identity import ( - A "github.com/ibm/fp-go/internal/apply" - T "github.com/ibm/fp-go/tuple" + A "github.com/IBM/fp-go/internal/apply" + T "github.com/IBM/fp-go/tuple" ) // SequenceT1 converts 1 parameters of [T] into a [Tuple1]. diff --git a/identity/generic/identity.go b/identity/generic/identity.go index c0fa4b0..e1a7699 100644 --- a/identity/generic/identity.go +++ b/identity/generic/identity.go @@ -1,8 +1,8 @@ package generic import ( - F "github.com/ibm/fp-go/function" - C "github.com/ibm/fp-go/internal/chain" + F "github.com/IBM/fp-go/function" + C "github.com/IBM/fp-go/internal/chain" ) func MonadAp[GAB ~func(A) B, B, A any](fab GAB, fa A) B { diff --git a/identity/identity.go b/identity/identity.go index c9dd8b6..6303827 100644 --- a/identity/identity.go +++ b/identity/identity.go @@ -1,8 +1,8 @@ package identity import ( - F "github.com/ibm/fp-go/function" - G "github.com/ibm/fp-go/identity/generic" + F "github.com/IBM/fp-go/function" + G "github.com/IBM/fp-go/identity/generic" ) func MonadAp[B, A any](fab func(A) B, fa A) B { diff --git a/identity/identity_test.go b/identity/identity_test.go index 48d7c7e..8965e3e 100644 --- a/identity/identity_test.go +++ b/identity/identity_test.go @@ -3,8 +3,8 @@ package identity import ( "testing" - F "github.com/ibm/fp-go/function" - "github.com/ibm/fp-go/internal/utils" + F "github.com/IBM/fp-go/function" + "github.com/IBM/fp-go/internal/utils" "github.com/stretchr/testify/assert" ) diff --git a/internal/applicative/testing/law.go b/internal/applicative/testing/law.go index 491bf09..5d6b036 100644 --- a/internal/applicative/testing/law.go +++ b/internal/applicative/testing/law.go @@ -3,9 +3,9 @@ package testing import ( "testing" - E "github.com/ibm/fp-go/eq" - F "github.com/ibm/fp-go/function" - L "github.com/ibm/fp-go/internal/apply/testing" + E "github.com/IBM/fp-go/eq" + F "github.com/IBM/fp-go/function" + L "github.com/IBM/fp-go/internal/apply/testing" "github.com/stretchr/testify/assert" ) diff --git a/internal/apply/ap.go b/internal/apply/ap.go index 39ec105..f9704cd 100644 --- a/internal/apply/ap.go +++ b/internal/apply/ap.go @@ -1,7 +1,7 @@ package apply import ( - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" ) // HKTFGA = HKT> diff --git a/internal/apply/gen.go b/internal/apply/gen.go index 7e3d14e..1a35085 100644 --- a/internal/apply/gen.go +++ b/internal/apply/gen.go @@ -5,8 +5,8 @@ package apply import ( - F "github.com/ibm/fp-go/function" - T "github.com/ibm/fp-go/tuple" + F "github.com/IBM/fp-go/function" + T "github.com/IBM/fp-go/tuple" ) // tupleConstructor1 returns a curried version of [T.MakeTuple1] diff --git a/internal/apply/testing/laws.go b/internal/apply/testing/laws.go index 7b0e29e..d2bbda6 100644 --- a/internal/apply/testing/laws.go +++ b/internal/apply/testing/laws.go @@ -3,8 +3,8 @@ package testing import ( "testing" - E "github.com/ibm/fp-go/eq" - FCT "github.com/ibm/fp-go/internal/functor/testing" + E "github.com/IBM/fp-go/eq" + FCT "github.com/IBM/fp-go/internal/functor/testing" "github.com/stretchr/testify/assert" ) diff --git a/internal/array/traverse.go b/internal/array/traverse.go index 0d581a0..27cb6c6 100644 --- a/internal/array/traverse.go +++ b/internal/array/traverse.go @@ -1,7 +1,7 @@ package array import ( - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" ) /* diff --git a/internal/chain/chain.go b/internal/chain/chain.go index a4136b0..e56438e 100644 --- a/internal/chain/chain.go +++ b/internal/chain/chain.go @@ -1,7 +1,7 @@ package chain import ( - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" ) // HKTA=HKT[A] diff --git a/internal/chain/testing/laws.go b/internal/chain/testing/laws.go index 9b93d62..ba8a3f7 100644 --- a/internal/chain/testing/laws.go +++ b/internal/chain/testing/laws.go @@ -3,9 +3,9 @@ package testing import ( "testing" - E "github.com/ibm/fp-go/eq" - F "github.com/ibm/fp-go/function" - L "github.com/ibm/fp-go/internal/apply/testing" + E "github.com/IBM/fp-go/eq" + F "github.com/IBM/fp-go/function" + L "github.com/IBM/fp-go/internal/apply/testing" "github.com/stretchr/testify/assert" ) diff --git a/internal/eithert/either.go b/internal/eithert/either.go index e041110..796340a 100644 --- a/internal/eithert/either.go +++ b/internal/eithert/either.go @@ -1,10 +1,10 @@ package eithert import ( - ET "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" - "github.com/ibm/fp-go/internal/apply" - FC "github.com/ibm/fp-go/internal/functor" + ET "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" + "github.com/IBM/fp-go/internal/apply" + FC "github.com/IBM/fp-go/internal/functor" ) // HKTFA = HKT> diff --git a/internal/eq/eq.go b/internal/eq/eq.go index 1acc38e..8b716a0 100644 --- a/internal/eq/eq.go +++ b/internal/eq/eq.go @@ -1,8 +1,8 @@ package eq import ( - EQ "github.com/ibm/fp-go/eq" - F "github.com/ibm/fp-go/function" + EQ "github.com/IBM/fp-go/eq" + F "github.com/IBM/fp-go/function" ) // Eq implements an equals predicate on the basis of `map` and `ap` diff --git a/internal/exec/exec.go b/internal/exec/exec.go index 6eb0aa5..b3150cb 100644 --- a/internal/exec/exec.go +++ b/internal/exec/exec.go @@ -6,9 +6,9 @@ import ( "fmt" "os/exec" - EX "github.com/ibm/fp-go/exec" + EX "github.com/IBM/fp-go/exec" - T "github.com/ibm/fp-go/tuple" + T "github.com/IBM/fp-go/tuple" ) func Exec(ctx context.Context, name string, args []string, in []byte) (EX.CommandOutput, error) { diff --git a/internal/file/bracket.go b/internal/file/bracket.go index 4725907..5c50f61 100644 --- a/internal/file/bracket.go +++ b/internal/file/bracket.go @@ -1,7 +1,7 @@ package file import ( - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" ) // Bracket makes sure that a resource is cleaned up in the event of an error. The release action is called regardless of diff --git a/internal/file/file.go b/internal/file/file.go index 31b6ce4..fd276de 100644 --- a/internal/file/file.go +++ b/internal/file/file.go @@ -5,7 +5,7 @@ import ( "context" "io" - E "github.com/ibm/fp-go/either" + E "github.com/IBM/fp-go/either" ) type ( diff --git a/internal/file/resource.go b/internal/file/resource.go index dd1ed34..c2b0c7a 100644 --- a/internal/file/resource.go +++ b/internal/file/resource.go @@ -1,7 +1,7 @@ package file import ( - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" ) // WithResource constructs a function that creates a resource, then operates on it and then releases the resource diff --git a/internal/fromeither/either.go b/internal/fromeither/either.go index 1059cc2..ba044db 100644 --- a/internal/fromeither/either.go +++ b/internal/fromeither/either.go @@ -1,10 +1,10 @@ package fromeither import ( - ET "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" - C "github.com/ibm/fp-go/internal/chain" - O "github.com/ibm/fp-go/option" + ET "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" + C "github.com/IBM/fp-go/internal/chain" + O "github.com/IBM/fp-go/option" ) func FromOption[E, A, HKTEA any](fromEither func(ET.Either[E, A]) HKTEA, onNone func() E) func(ma O.Option[A]) HKTEA { diff --git a/internal/fromio/io.go b/internal/fromio/io.go index 7dba6d1..e767467 100644 --- a/internal/fromio/io.go +++ b/internal/fromio/io.go @@ -1,8 +1,8 @@ package fromio import ( - F "github.com/ibm/fp-go/function" - C "github.com/ibm/fp-go/internal/chain" + F "github.com/IBM/fp-go/function" + C "github.com/IBM/fp-go/internal/chain" ) func MonadChainFirstIOK[A, B, HKTA, HKTB any, GIOB ~func() B]( diff --git a/internal/fromioeither/ioeither.go b/internal/fromioeither/ioeither.go index fca3742..71f2f43 100644 --- a/internal/fromioeither/ioeither.go +++ b/internal/fromioeither/ioeither.go @@ -1,9 +1,9 @@ package fromioeither import ( - ET "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" - C "github.com/ibm/fp-go/internal/chain" + ET "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" + C "github.com/IBM/fp-go/internal/chain" ) func MonadChainFirstIOEitherK[GIOB ~func() ET.Either[E, B], E, A, B, HKTA, HKTB any]( diff --git a/internal/fromreader/reader.go b/internal/fromreader/reader.go index e3cd2c4..5b79c18 100644 --- a/internal/fromreader/reader.go +++ b/internal/fromreader/reader.go @@ -1,8 +1,8 @@ package fromreader import ( - F "github.com/ibm/fp-go/function" - G "github.com/ibm/fp-go/reader/generic" + F "github.com/IBM/fp-go/function" + G "github.com/IBM/fp-go/reader/generic" ) func Ask[GR ~func(R) R, R, HKTRA any](fromReader func(GR) HKTRA) func() HKTRA { diff --git a/internal/functor/functor.go b/internal/functor/functor.go index e11020d..0a37ec0 100644 --- a/internal/functor/functor.go +++ b/internal/functor/functor.go @@ -1,7 +1,7 @@ package functor import ( - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" ) // HKTFGA = HKT[F, HKT[G, A]] diff --git a/internal/functor/testing/laws.go b/internal/functor/testing/laws.go index 1387584..5e109d0 100644 --- a/internal/functor/testing/laws.go +++ b/internal/functor/testing/laws.go @@ -3,8 +3,8 @@ package testing import ( "testing" - E "github.com/ibm/fp-go/eq" - F "github.com/ibm/fp-go/function" + E "github.com/IBM/fp-go/eq" + F "github.com/IBM/fp-go/function" "github.com/stretchr/testify/assert" ) diff --git a/internal/monad/testing/laws.go b/internal/monad/testing/laws.go index b5ecae7..f7a6ffb 100644 --- a/internal/monad/testing/laws.go +++ b/internal/monad/testing/laws.go @@ -3,9 +3,9 @@ package testing import ( "testing" - E "github.com/ibm/fp-go/eq" - LA "github.com/ibm/fp-go/internal/applicative/testing" - LC "github.com/ibm/fp-go/internal/chain/testing" + E "github.com/IBM/fp-go/eq" + LA "github.com/IBM/fp-go/internal/applicative/testing" + LC "github.com/IBM/fp-go/internal/chain/testing" "github.com/stretchr/testify/assert" ) diff --git a/internal/readert/reader.go b/internal/readert/reader.go index a8bd835..24b1105 100644 --- a/internal/readert/reader.go +++ b/internal/readert/reader.go @@ -1,8 +1,8 @@ package readert import ( - F "github.com/ibm/fp-go/function" - R "github.com/ibm/fp-go/reader/generic" + F "github.com/IBM/fp-go/function" + R "github.com/IBM/fp-go/reader/generic" ) // here we implement the monadic operations using callbacks from diff --git a/internal/record/traverse.go b/internal/record/traverse.go index 640f671..cdf9aeb 100644 --- a/internal/record/traverse.go +++ b/internal/record/traverse.go @@ -1,7 +1,7 @@ package record import ( - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" ) // createEmpty creates a new empty, read-write map diff --git a/io/apply.go b/io/apply.go index e754eaa..8262d85 100644 --- a/io/apply.go +++ b/io/apply.go @@ -1,9 +1,9 @@ package io import ( - G "github.com/ibm/fp-go/io/generic" - M "github.com/ibm/fp-go/monoid" - S "github.com/ibm/fp-go/semigroup" + G "github.com/IBM/fp-go/io/generic" + M "github.com/IBM/fp-go/monoid" + S "github.com/IBM/fp-go/semigroup" ) func ApplySemigroup[A any](s S.Semigroup[A]) S.Semigroup[IO[A]] { diff --git a/io/eq.go b/io/eq.go index 18fbf6d..55d34fb 100644 --- a/io/eq.go +++ b/io/eq.go @@ -1,8 +1,8 @@ package io import ( - EQ "github.com/ibm/fp-go/eq" - G "github.com/ibm/fp-go/io/generic" + EQ "github.com/IBM/fp-go/eq" + G "github.com/IBM/fp-go/io/generic" ) // Eq implements the equals predicate for values contained in the IO monad diff --git a/io/generic/ap.go b/io/generic/ap.go index cd4acae..8e1a5ed 100644 --- a/io/generic/ap.go +++ b/io/generic/ap.go @@ -1,7 +1,7 @@ package generic import ( - G "github.com/ibm/fp-go/internal/apply" + G "github.com/IBM/fp-go/internal/apply" ) const ( diff --git a/io/generic/apply.go b/io/generic/apply.go index 330c021..32aa391 100644 --- a/io/generic/apply.go +++ b/io/generic/apply.go @@ -1,8 +1,8 @@ package generic import ( - M "github.com/ibm/fp-go/monoid" - S "github.com/ibm/fp-go/semigroup" + M "github.com/IBM/fp-go/monoid" + S "github.com/IBM/fp-go/semigroup" ) func ApplySemigroup[GA ~func() A, A any](s S.Semigroup[A]) S.Semigroup[GA] { diff --git a/io/generic/eq.go b/io/generic/eq.go index 29d6ede..063b9ba 100644 --- a/io/generic/eq.go +++ b/io/generic/eq.go @@ -1,8 +1,8 @@ package generic import ( - EQ "github.com/ibm/fp-go/eq" - G "github.com/ibm/fp-go/internal/eq" + EQ "github.com/IBM/fp-go/eq" + G "github.com/IBM/fp-go/internal/eq" ) // Eq implements the equals predicate for values contained in the IO monad diff --git a/io/generic/io.go b/io/generic/io.go index 035ae59..2be8c5c 100644 --- a/io/generic/io.go +++ b/io/generic/io.go @@ -4,8 +4,8 @@ import ( "sync" "time" - F "github.com/ibm/fp-go/function" - C "github.com/ibm/fp-go/internal/chain" + F "github.com/IBM/fp-go/function" + C "github.com/IBM/fp-go/internal/chain" ) // type IO[A any] = func() A diff --git a/io/generic/logging.go b/io/generic/logging.go index da45502..0da768f 100644 --- a/io/generic/logging.go +++ b/io/generic/logging.go @@ -3,7 +3,7 @@ package generic import ( "log" - Logging "github.com/ibm/fp-go/logging" + Logging "github.com/IBM/fp-go/logging" ) func Logger[GA ~func() any, A any](loggers ...*log.Logger) func(string) func(A) GA { diff --git a/io/generic/retry.go b/io/generic/retry.go index 69df657..2d94e29 100644 --- a/io/generic/retry.go +++ b/io/generic/retry.go @@ -1,8 +1,8 @@ package generic import ( - R "github.com/ibm/fp-go/retry" - G "github.com/ibm/fp-go/retry/generic" + R "github.com/IBM/fp-go/retry" + G "github.com/IBM/fp-go/retry/generic" ) type retryStatusIO = func() R.RetryStatus diff --git a/io/generic/sequence.go b/io/generic/sequence.go index 8e73766..a151b9c 100644 --- a/io/generic/sequence.go +++ b/io/generic/sequence.go @@ -1,8 +1,8 @@ package generic import ( - "github.com/ibm/fp-go/internal/apply" - T "github.com/ibm/fp-go/tuple" + "github.com/IBM/fp-go/internal/apply" + T "github.com/IBM/fp-go/tuple" ) // SequenceT converts n inputs of higher kinded types into a higher kinded types of n strongly typed values, represented as a tuple diff --git a/io/generic/traverse.go b/io/generic/traverse.go index 879a035..03d75b7 100644 --- a/io/generic/traverse.go +++ b/io/generic/traverse.go @@ -1,9 +1,9 @@ package generic import ( - F "github.com/ibm/fp-go/function" - RA "github.com/ibm/fp-go/internal/array" - RR "github.com/ibm/fp-go/internal/record" + F "github.com/IBM/fp-go/function" + RA "github.com/IBM/fp-go/internal/array" + RR "github.com/IBM/fp-go/internal/record" ) func MonadTraverseArray[GB ~func() B, GBS ~func() BBS, AAS ~[]A, BBS ~[]B, A, B any](tas AAS, f func(A) GB) GBS { diff --git a/io/io.go b/io/io.go index e23df84..36c8c27 100644 --- a/io/io.go +++ b/io/io.go @@ -3,7 +3,7 @@ package io import ( "time" - G "github.com/ibm/fp-go/io/generic" + G "github.com/IBM/fp-go/io/generic" ) // IO represents a synchronous computation that cannot fail diff --git a/io/io_test.go b/io/io_test.go index d257e95..e344df9 100644 --- a/io/io_test.go +++ b/io/io_test.go @@ -4,8 +4,8 @@ import ( "math/rand" "testing" - F "github.com/ibm/fp-go/function" - "github.com/ibm/fp-go/internal/utils" + F "github.com/IBM/fp-go/function" + "github.com/IBM/fp-go/internal/utils" "github.com/stretchr/testify/assert" ) diff --git a/io/logging.go b/io/logging.go index ca33f66..65daa0a 100644 --- a/io/logging.go +++ b/io/logging.go @@ -3,7 +3,7 @@ package io import ( "log" - G "github.com/ibm/fp-go/io/generic" + G "github.com/IBM/fp-go/io/generic" ) // Logger constructs a logger function that can be used with ChainXXXIOK diff --git a/io/retry.go b/io/retry.go index 67b5322..a8721c1 100644 --- a/io/retry.go +++ b/io/retry.go @@ -1,8 +1,8 @@ package io import ( - G "github.com/ibm/fp-go/io/generic" - R "github.com/ibm/fp-go/retry" + G "github.com/IBM/fp-go/io/generic" + R "github.com/IBM/fp-go/retry" ) // Retrying will retry the actions according to the check policy diff --git a/io/retry_test.go b/io/retry_test.go index 2fb0262..acde283 100644 --- a/io/retry_test.go +++ b/io/retry_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - R "github.com/ibm/fp-go/retry" + R "github.com/IBM/fp-go/retry" "github.com/stretchr/testify/assert" ) diff --git a/io/sequence.go b/io/sequence.go index 317b066..b4667c0 100644 --- a/io/sequence.go +++ b/io/sequence.go @@ -1,8 +1,8 @@ package io import ( - G "github.com/ibm/fp-go/io/generic" - T "github.com/ibm/fp-go/tuple" + G "github.com/IBM/fp-go/io/generic" + T "github.com/IBM/fp-go/tuple" ) // SequenceT converts n inputs of higher kinded types into a higher kinded types of n strongly typed values, represented as a tuple diff --git a/io/testing/laws.go b/io/testing/laws.go index 220ac70..6df2489 100644 --- a/io/testing/laws.go +++ b/io/testing/laws.go @@ -3,9 +3,9 @@ package testing import ( "testing" - EQ "github.com/ibm/fp-go/eq" - L "github.com/ibm/fp-go/internal/monad/testing" - "github.com/ibm/fp-go/io" + EQ "github.com/IBM/fp-go/eq" + L "github.com/IBM/fp-go/internal/monad/testing" + "github.com/IBM/fp-go/io" ) // AssertLaws asserts the apply monad laws for the `Either` monad diff --git a/io/testing/laws_test.go b/io/testing/laws_test.go index 55d5288..7a530d7 100644 --- a/io/testing/laws_test.go +++ b/io/testing/laws_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - EQ "github.com/ibm/fp-go/eq" + EQ "github.com/IBM/fp-go/eq" "github.com/stretchr/testify/assert" ) diff --git a/io/traverse.go b/io/traverse.go index 5f22602..629f141 100644 --- a/io/traverse.go +++ b/io/traverse.go @@ -1,7 +1,7 @@ package io import ( - G "github.com/ibm/fp-go/io/generic" + G "github.com/IBM/fp-go/io/generic" ) func MonadTraverseArray[A, B any](tas []A, f func(A) IO[B]) IO[[]B] { diff --git a/ioeither/ap.go b/ioeither/ap.go index a5ad101..3827d4e 100644 --- a/ioeither/ap.go +++ b/ioeither/ap.go @@ -1,7 +1,7 @@ package ioeither import ( - G "github.com/ibm/fp-go/ioeither/generic" + G "github.com/IBM/fp-go/ioeither/generic" ) // MonadApFirst combines two effectful actions, keeping only the result of the first. diff --git a/ioeither/bracket.go b/ioeither/bracket.go index bdb2d07..4681654 100644 --- a/ioeither/bracket.go +++ b/ioeither/bracket.go @@ -1,8 +1,8 @@ package ioeither import ( - ET "github.com/ibm/fp-go/either" - G "github.com/ibm/fp-go/ioeither/generic" + ET "github.com/IBM/fp-go/either" + G "github.com/IBM/fp-go/ioeither/generic" ) // Bracket makes sure that a resource is cleaned up in the event of an error. The release action is called regardless of diff --git a/ioeither/eq.go b/ioeither/eq.go index c2f9467..d722888 100644 --- a/ioeither/eq.go +++ b/ioeither/eq.go @@ -1,9 +1,9 @@ package ioeither import ( - ET "github.com/ibm/fp-go/either" - EQ "github.com/ibm/fp-go/eq" - G "github.com/ibm/fp-go/ioeither/generic" + ET "github.com/IBM/fp-go/either" + EQ "github.com/IBM/fp-go/eq" + G "github.com/IBM/fp-go/ioeither/generic" ) // Eq implements the equals predicate for values contained in the IOEither monad diff --git a/ioeither/exec/exec.go b/ioeither/exec/exec.go index 12f6638..773aee2 100644 --- a/ioeither/exec/exec.go +++ b/ioeither/exec/exec.go @@ -16,10 +16,10 @@ package exec import ( - "github.com/ibm/fp-go/exec" - F "github.com/ibm/fp-go/function" - IOE "github.com/ibm/fp-go/ioeither" - G "github.com/ibm/fp-go/ioeither/generic" + "github.com/IBM/fp-go/exec" + F "github.com/IBM/fp-go/function" + IOE "github.com/IBM/fp-go/ioeither" + G "github.com/IBM/fp-go/ioeither/generic" ) var ( diff --git a/ioeither/exec/exec_test.go b/ioeither/exec/exec_test.go index 6f7917e..1a43ad7 100644 --- a/ioeither/exec/exec_test.go +++ b/ioeither/exec/exec_test.go @@ -19,12 +19,12 @@ import ( "strings" "testing" - RA "github.com/ibm/fp-go/array" - B "github.com/ibm/fp-go/bytes" - E "github.com/ibm/fp-go/either" - "github.com/ibm/fp-go/exec" - F "github.com/ibm/fp-go/function" - IOE "github.com/ibm/fp-go/ioeither" + RA "github.com/IBM/fp-go/array" + B "github.com/IBM/fp-go/bytes" + E "github.com/IBM/fp-go/either" + "github.com/IBM/fp-go/exec" + F "github.com/IBM/fp-go/function" + IOE "github.com/IBM/fp-go/ioeither" "github.com/stretchr/testify/assert" ) diff --git a/ioeither/file/close.go b/ioeither/file/close.go index 6d0cb45..dad13fd 100644 --- a/ioeither/file/close.go +++ b/ioeither/file/close.go @@ -3,7 +3,7 @@ package file import ( "io" - IOE "github.com/ibm/fp-go/ioeither" + IOE "github.com/IBM/fp-go/ioeither" ) func onClose[R io.Closer](r R) IOE.IOEither[error, R] { diff --git a/ioeither/file/file.go b/ioeither/file/file.go index 8d1fa13..999da27 100644 --- a/ioeither/file/file.go +++ b/ioeither/file/file.go @@ -3,7 +3,7 @@ package file import ( "os" - IOE "github.com/ibm/fp-go/ioeither" + IOE "github.com/IBM/fp-go/ioeither" ) var ( diff --git a/ioeither/file/readall.go b/ioeither/file/readall.go index e1aca94..329044d 100644 --- a/ioeither/file/readall.go +++ b/ioeither/file/readall.go @@ -3,7 +3,7 @@ package file import ( "io" - IOE "github.com/ibm/fp-go/ioeither" + IOE "github.com/IBM/fp-go/ioeither" ) func onReadAll[R io.Reader](r R) IOE.IOEither[error, []byte] { diff --git a/ioeither/file/write.go b/ioeither/file/write.go index 3d22398..261b856 100644 --- a/ioeither/file/write.go +++ b/ioeither/file/write.go @@ -3,7 +3,7 @@ package file import ( "io" - IOE "github.com/ibm/fp-go/ioeither" + IOE "github.com/IBM/fp-go/ioeither" ) func onWriteAll[W io.Writer](data []byte) func(w W) IOE.IOEither[error, []byte] { diff --git a/ioeither/generic/ap.go b/ioeither/generic/ap.go index 3ccd0a8..e4c9dfc 100644 --- a/ioeither/generic/ap.go +++ b/ioeither/generic/ap.go @@ -1,8 +1,8 @@ package generic import ( - ET "github.com/ibm/fp-go/either" - G "github.com/ibm/fp-go/internal/apply" + ET "github.com/IBM/fp-go/either" + G "github.com/IBM/fp-go/internal/apply" ) // MonadApFirst combines two effectful actions, keeping only the result of the first. diff --git a/ioeither/generic/bracket.go b/ioeither/generic/bracket.go index 559ba17..7243b80 100644 --- a/ioeither/generic/bracket.go +++ b/ioeither/generic/bracket.go @@ -1,9 +1,9 @@ package generic import ( - ET "github.com/ibm/fp-go/either" - G "github.com/ibm/fp-go/internal/file" - I "github.com/ibm/fp-go/io/generic" + ET "github.com/IBM/fp-go/either" + G "github.com/IBM/fp-go/internal/file" + I "github.com/IBM/fp-go/io/generic" ) // Bracket makes sure that a resource is cleaned up in the event of an error. The release action is called regardless of diff --git a/ioeither/generic/eq.go b/ioeither/generic/eq.go index d82016b..e563361 100644 --- a/ioeither/generic/eq.go +++ b/ioeither/generic/eq.go @@ -1,9 +1,9 @@ package generic import ( - ET "github.com/ibm/fp-go/either" - EQ "github.com/ibm/fp-go/eq" - G "github.com/ibm/fp-go/io/generic" + ET "github.com/IBM/fp-go/either" + EQ "github.com/IBM/fp-go/eq" + G "github.com/IBM/fp-go/io/generic" ) // Eq implements the equals predicate for values contained in the IOEither monad diff --git a/ioeither/generic/exec.go b/ioeither/generic/exec.go index be73761..9bb1707 100644 --- a/ioeither/generic/exec.go +++ b/ioeither/generic/exec.go @@ -3,9 +3,9 @@ package generic import ( "context" - ET "github.com/ibm/fp-go/either" - "github.com/ibm/fp-go/exec" - GE "github.com/ibm/fp-go/internal/exec" + ET "github.com/IBM/fp-go/either" + "github.com/IBM/fp-go/exec" + GE "github.com/IBM/fp-go/internal/exec" ) // Command executes a command diff --git a/ioeither/generic/ioeither.go b/ioeither/generic/ioeither.go index e0f5392..7c7b773 100644 --- a/ioeither/generic/ioeither.go +++ b/ioeither/generic/ioeither.go @@ -3,15 +3,15 @@ package generic import ( "time" - ET "github.com/ibm/fp-go/either" - "github.com/ibm/fp-go/errors" - F "github.com/ibm/fp-go/function" - C "github.com/ibm/fp-go/internal/chain" - "github.com/ibm/fp-go/internal/eithert" - FE "github.com/ibm/fp-go/internal/fromeither" - FI "github.com/ibm/fp-go/internal/fromio" - IO "github.com/ibm/fp-go/io/generic" - O "github.com/ibm/fp-go/option" + ET "github.com/IBM/fp-go/either" + "github.com/IBM/fp-go/errors" + F "github.com/IBM/fp-go/function" + C "github.com/IBM/fp-go/internal/chain" + "github.com/IBM/fp-go/internal/eithert" + FE "github.com/IBM/fp-go/internal/fromeither" + FI "github.com/IBM/fp-go/internal/fromio" + IO "github.com/IBM/fp-go/io/generic" + O "github.com/IBM/fp-go/option" ) // type IOEither[E, A any] = func() Either[E, A] diff --git a/ioeither/generic/resource.go b/ioeither/generic/resource.go index 6f6ca4e..e2d6ace 100644 --- a/ioeither/generic/resource.go +++ b/ioeither/generic/resource.go @@ -1,9 +1,9 @@ package generic import ( - ET "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" - IF "github.com/ibm/fp-go/internal/file" + ET "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" + IF "github.com/IBM/fp-go/internal/file" ) // WithResource constructs a function that creates a resource, then operates on it and then releases the resource diff --git a/ioeither/generic/retry.go b/ioeither/generic/retry.go index a095134..6f656b6 100644 --- a/ioeither/generic/retry.go +++ b/ioeither/generic/retry.go @@ -1,9 +1,9 @@ package generic import ( - ET "github.com/ibm/fp-go/either" - GIO "github.com/ibm/fp-go/io/generic" - R "github.com/ibm/fp-go/retry" + ET "github.com/IBM/fp-go/either" + GIO "github.com/IBM/fp-go/io/generic" + R "github.com/IBM/fp-go/retry" ) // Retry combinator for actions that don't raise exceptions, but diff --git a/ioeither/generic/sequence.go b/ioeither/generic/sequence.go index 0deaada..54d80df 100644 --- a/ioeither/generic/sequence.go +++ b/ioeither/generic/sequence.go @@ -1,9 +1,9 @@ package generic import ( - ET "github.com/ibm/fp-go/either" - "github.com/ibm/fp-go/internal/apply" - T "github.com/ibm/fp-go/tuple" + ET "github.com/IBM/fp-go/either" + "github.com/IBM/fp-go/internal/apply" + T "github.com/IBM/fp-go/tuple" ) // SequenceT converts n inputs of higher kinded types into a higher kinded types of n strongly typed values, represented as a tuple diff --git a/ioeither/generic/traverse.go b/ioeither/generic/traverse.go index 023276a..a103ea5 100644 --- a/ioeither/generic/traverse.go +++ b/ioeither/generic/traverse.go @@ -1,10 +1,10 @@ package generic import ( - ET "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" - RA "github.com/ibm/fp-go/internal/array" - RR "github.com/ibm/fp-go/internal/record" + ET "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" + RA "github.com/IBM/fp-go/internal/array" + RR "github.com/IBM/fp-go/internal/record" ) // MonadTraverseArray transforms an array diff --git a/ioeither/http/request.go b/ioeither/http/request.go index b3087a7..e2682d2 100644 --- a/ioeither/http/request.go +++ b/ioeither/http/request.go @@ -4,12 +4,12 @@ import ( "io" "net/http" - B "github.com/ibm/fp-go/bytes" - ER "github.com/ibm/fp-go/errors" - F "github.com/ibm/fp-go/function" - IOE "github.com/ibm/fp-go/ioeither" - IOEF "github.com/ibm/fp-go/ioeither/file" - J "github.com/ibm/fp-go/json" + B "github.com/IBM/fp-go/bytes" + ER "github.com/IBM/fp-go/errors" + F "github.com/IBM/fp-go/function" + IOE "github.com/IBM/fp-go/ioeither" + IOEF "github.com/IBM/fp-go/ioeither/file" + J "github.com/IBM/fp-go/json" ) type Client interface { diff --git a/ioeither/http/retry_test.go b/ioeither/http/retry_test.go index b9f7b77..f1e55b1 100644 --- a/ioeither/http/retry_test.go +++ b/ioeither/http/retry_test.go @@ -6,14 +6,14 @@ import ( "testing" "time" - AR "github.com/ibm/fp-go/array" - E "github.com/ibm/fp-go/either" - HE "github.com/ibm/fp-go/either/http" - "github.com/ibm/fp-go/errors" - F "github.com/ibm/fp-go/function" - IOE "github.com/ibm/fp-go/ioeither" - O "github.com/ibm/fp-go/option" - R "github.com/ibm/fp-go/retry" + AR "github.com/IBM/fp-go/array" + E "github.com/IBM/fp-go/either" + HE "github.com/IBM/fp-go/either/http" + "github.com/IBM/fp-go/errors" + F "github.com/IBM/fp-go/function" + IOE "github.com/IBM/fp-go/ioeither" + O "github.com/IBM/fp-go/option" + R "github.com/IBM/fp-go/retry" "github.com/stretchr/testify/assert" ) diff --git a/ioeither/ioeither.go b/ioeither/ioeither.go index c75f07f..710e832 100644 --- a/ioeither/ioeither.go +++ b/ioeither/ioeither.go @@ -1,10 +1,10 @@ package ioeither import ( - ET "github.com/ibm/fp-go/either" - I "github.com/ibm/fp-go/io" - G "github.com/ibm/fp-go/ioeither/generic" - O "github.com/ibm/fp-go/option" + ET "github.com/IBM/fp-go/either" + I "github.com/IBM/fp-go/io" + G "github.com/IBM/fp-go/ioeither/generic" + O "github.com/IBM/fp-go/option" ) // IO represents a synchronous computation that may fail diff --git a/ioeither/ioeither_test.go b/ioeither/ioeither_test.go index f6669fa..eaa16d4 100644 --- a/ioeither/ioeither_test.go +++ b/ioeither/ioeither_test.go @@ -4,12 +4,12 @@ import ( "fmt" "testing" - E "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" - "github.com/ibm/fp-go/internal/utils" - I "github.com/ibm/fp-go/io" - IG "github.com/ibm/fp-go/io/generic" - O "github.com/ibm/fp-go/option" + E "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" + "github.com/IBM/fp-go/internal/utils" + I "github.com/IBM/fp-go/io" + IG "github.com/IBM/fp-go/io/generic" + O "github.com/IBM/fp-go/option" "github.com/stretchr/testify/assert" ) diff --git a/ioeither/retry.go b/ioeither/retry.go index 95380c6..2a95b3a 100644 --- a/ioeither/retry.go +++ b/ioeither/retry.go @@ -1,9 +1,9 @@ package ioeither import ( - ET "github.com/ibm/fp-go/either" - G "github.com/ibm/fp-go/ioeither/generic" - R "github.com/ibm/fp-go/retry" + ET "github.com/IBM/fp-go/either" + G "github.com/IBM/fp-go/ioeither/generic" + R "github.com/IBM/fp-go/retry" ) // Retrying will retry the actions according to the check policy diff --git a/ioeither/retry_test.go b/ioeither/retry_test.go index 46bef68..ec076a9 100644 --- a/ioeither/retry_test.go +++ b/ioeither/retry_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - E "github.com/ibm/fp-go/either" - R "github.com/ibm/fp-go/retry" + E "github.com/IBM/fp-go/either" + R "github.com/IBM/fp-go/retry" "github.com/stretchr/testify/assert" ) diff --git a/ioeither/sequence.go b/ioeither/sequence.go index 3481a02..03367f9 100644 --- a/ioeither/sequence.go +++ b/ioeither/sequence.go @@ -1,8 +1,8 @@ package ioeither import ( - G "github.com/ibm/fp-go/ioeither/generic" - T "github.com/ibm/fp-go/tuple" + G "github.com/IBM/fp-go/ioeither/generic" + T "github.com/IBM/fp-go/tuple" ) // SequenceT converts n inputs of higher kinded types into a higher kinded types of n strongly typed values, represented as a tuple diff --git a/ioeither/testing/laws.go b/ioeither/testing/laws.go index 4077b8e..b09ab0e 100644 --- a/ioeither/testing/laws.go +++ b/ioeither/testing/laws.go @@ -3,10 +3,10 @@ package testing import ( "testing" - ET "github.com/ibm/fp-go/either" - EQ "github.com/ibm/fp-go/eq" - L "github.com/ibm/fp-go/internal/monad/testing" - IOE "github.com/ibm/fp-go/ioeither" + ET "github.com/IBM/fp-go/either" + EQ "github.com/IBM/fp-go/eq" + L "github.com/IBM/fp-go/internal/monad/testing" + IOE "github.com/IBM/fp-go/ioeither" ) // AssertLaws asserts the apply monad laws for the `IOEither` monad diff --git a/ioeither/testing/laws_test.go b/ioeither/testing/laws_test.go index d3a35c8..48ed499 100644 --- a/ioeither/testing/laws_test.go +++ b/ioeither/testing/laws_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - EQ "github.com/ibm/fp-go/eq" + EQ "github.com/IBM/fp-go/eq" "github.com/stretchr/testify/assert" ) diff --git a/ioeither/traverse.go b/ioeither/traverse.go index 5a064b3..637b341 100644 --- a/ioeither/traverse.go +++ b/ioeither/traverse.go @@ -1,7 +1,7 @@ package ioeither import ( - G "github.com/ibm/fp-go/ioeither/generic" + G "github.com/IBM/fp-go/ioeither/generic" ) // TraverseArray transforms an array diff --git a/json/json.go b/json/json.go index 1f04e6f..fce2704 100644 --- a/json/json.go +++ b/json/json.go @@ -3,7 +3,7 @@ package json import ( "encoding/json" - E "github.com/ibm/fp-go/either" + E "github.com/IBM/fp-go/either" ) // Unmarshal parses a JSON data structure from bytes diff --git a/json/json_test.go b/json/json_test.go index af6f297..fb807cc 100644 --- a/json/json_test.go +++ b/json/json_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - E "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" + E "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" "github.com/stretchr/testify/assert" ) diff --git a/json/type.go b/json/type.go index 29de801..7b70162 100644 --- a/json/type.go +++ b/json/type.go @@ -1,9 +1,9 @@ package json import ( - E "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" - O "github.com/ibm/fp-go/option" + E "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" + O "github.com/IBM/fp-go/option" ) func ToTypeE[A any](src any) E.Either[error, A] { diff --git a/json/type_test.go b/json/type_test.go index 397d156..8330881 100644 --- a/json/type_test.go +++ b/json/type_test.go @@ -3,8 +3,8 @@ package json import ( "testing" - E "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" + E "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" "github.com/stretchr/testify/assert" ) diff --git a/magma/array.go b/magma/array.go index 4e8929e..8f33ef6 100644 --- a/magma/array.go +++ b/magma/array.go @@ -1,8 +1,8 @@ package magma import ( - F "github.com/ibm/fp-go/function" - AR "github.com/ibm/fp-go/internal/array" + F "github.com/IBM/fp-go/function" + AR "github.com/IBM/fp-go/internal/array" ) func GenericMonadConcatAll[GA ~[]A, A any](m Magma[A]) func(GA, A) A { diff --git a/main.go b/main.go index 4ede20d..9b8a72f 100644 --- a/main.go +++ b/main.go @@ -1,10 +1,11 @@ +// Package main package main import ( "log" "os" - "github.com/ibm/fp-go/cli" + "github.com/IBM/fp-go/cli" C "github.com/urfave/cli/v2" ) diff --git a/monoid/apply.go b/monoid/apply.go index 1704bc5..b78d822 100644 --- a/monoid/apply.go +++ b/monoid/apply.go @@ -1,7 +1,7 @@ package monoid import ( - S "github.com/ibm/fp-go/semigroup" + S "github.com/IBM/fp-go/semigroup" ) func ApplicativeMonoid[A, HKTA, HKTFA any]( diff --git a/monoid/array.go b/monoid/array.go index ade2e5d..dba4423 100644 --- a/monoid/array.go +++ b/monoid/array.go @@ -1,7 +1,7 @@ package monoid import ( - S "github.com/ibm/fp-go/semigroup" + S "github.com/IBM/fp-go/semigroup" ) func GenericConcatAll[GA ~[]A, A any](m Monoid[A]) func(GA) A { diff --git a/monoid/function.go b/monoid/function.go index 4c0b079..f9dfb8b 100644 --- a/monoid/function.go +++ b/monoid/function.go @@ -1,8 +1,8 @@ package monoid import ( - F "github.com/ibm/fp-go/function" - S "github.com/ibm/fp-go/semigroup" + F "github.com/IBM/fp-go/function" + S "github.com/IBM/fp-go/semigroup" ) // FunctionMonoid forms a monoid as long as you can provide a monoid for the codomain. diff --git a/monoid/monoid.go b/monoid/monoid.go index d39424f..66d540f 100644 --- a/monoid/monoid.go +++ b/monoid/monoid.go @@ -1,7 +1,7 @@ package monoid import ( - S "github.com/ibm/fp-go/semigroup" + S "github.com/IBM/fp-go/semigroup" ) type Monoid[A any] interface { diff --git a/monoid/testing/rules.go b/monoid/testing/rules.go index ef5c1d7..162142f 100644 --- a/monoid/testing/rules.go +++ b/monoid/testing/rules.go @@ -3,8 +3,8 @@ package testing import ( "testing" - AR "github.com/ibm/fp-go/internal/array" - M "github.com/ibm/fp-go/monoid" + AR "github.com/IBM/fp-go/internal/array" + M "github.com/IBM/fp-go/monoid" "github.com/stretchr/testify/assert" ) diff --git a/number/magma.go b/number/magma.go index 2e8ba7a..f004b6b 100644 --- a/number/magma.go +++ b/number/magma.go @@ -1,7 +1,7 @@ package number import ( - M "github.com/ibm/fp-go/magma" + M "github.com/IBM/fp-go/magma" ) func MagmaSub[A int | int8 | int16 | int32 | int64 | float32 | float64 | complex64 | complex128]() M.Magma[A] { diff --git a/number/magma_test.go b/number/magma_test.go index 2f6e9ba..c974769 100644 --- a/number/magma_test.go +++ b/number/magma_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - M "github.com/ibm/fp-go/magma" + M "github.com/IBM/fp-go/magma" ) func TestSemigroupIsMagma(t *testing.T) { diff --git a/number/monoid.go b/number/monoid.go index c523a3e..7ee0d15 100644 --- a/number/monoid.go +++ b/number/monoid.go @@ -1,7 +1,7 @@ package number import ( - M "github.com/ibm/fp-go/monoid" + M "github.com/IBM/fp-go/monoid" ) func MonoidSum[A int | int8 | int16 | int32 | int64 | float32 | float64 | complex64 | complex128]() M.Monoid[A] { diff --git a/number/monoid_test.go b/number/monoid_test.go index 2d9c2ff..910512c 100644 --- a/number/monoid_test.go +++ b/number/monoid_test.go @@ -3,7 +3,7 @@ package number import ( "testing" - M "github.com/ibm/fp-go/monoid/testing" + M "github.com/IBM/fp-go/monoid/testing" ) func TestMonoidSum(t *testing.T) { diff --git a/number/semigroup.go b/number/semigroup.go index 421f2b3..64d8889 100644 --- a/number/semigroup.go +++ b/number/semigroup.go @@ -1,7 +1,7 @@ package number import ( - S "github.com/ibm/fp-go/semigroup" + S "github.com/IBM/fp-go/semigroup" ) func SemigroupSum[A int | int8 | int16 | int32 | int64 | float32 | float64 | complex64 | complex128]() S.Semigroup[A] { diff --git a/option/apply.go b/option/apply.go index fb8a1dd..a702ff1 100644 --- a/option/apply.go +++ b/option/apply.go @@ -1,8 +1,8 @@ package option import ( - M "github.com/ibm/fp-go/monoid" - S "github.com/ibm/fp-go/semigroup" + M "github.com/IBM/fp-go/monoid" + S "github.com/IBM/fp-go/semigroup" ) func ApplySemigroup[A any](s S.Semigroup[A]) S.Semigroup[Option[A]] { diff --git a/option/array.go b/option/array.go index 1e4159f..3d8a255 100644 --- a/option/array.go +++ b/option/array.go @@ -1,8 +1,8 @@ package option import ( - F "github.com/ibm/fp-go/function" - RA "github.com/ibm/fp-go/internal/array" + F "github.com/IBM/fp-go/function" + RA "github.com/IBM/fp-go/internal/array" ) // TraverseArray transforms an array diff --git a/option/array_test.go b/option/array_test.go index 4ec5c31..b1bcffd 100644 --- a/option/array_test.go +++ b/option/array_test.go @@ -3,7 +3,7 @@ package option import ( "testing" - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" "github.com/stretchr/testify/assert" ) diff --git a/option/eq.go b/option/eq.go index 50fcda3..9edcf0d 100644 --- a/option/eq.go +++ b/option/eq.go @@ -1,8 +1,8 @@ package option import ( - EQ "github.com/ibm/fp-go/eq" - F "github.com/ibm/fp-go/function" + EQ "github.com/IBM/fp-go/eq" + F "github.com/IBM/fp-go/function" ) // Constructs an equal predicate for an `Option` diff --git a/option/gen.go b/option/gen.go index 651124f..5c43771 100644 --- a/option/gen.go +++ b/option/gen.go @@ -5,8 +5,8 @@ package option import ( - A "github.com/ibm/fp-go/internal/apply" - T "github.com/ibm/fp-go/tuple" + A "github.com/IBM/fp-go/internal/apply" + T "github.com/IBM/fp-go/tuple" ) // optionize converts a nullary function to an option func optionize[R any](f func() (R, bool)) Option[R] { diff --git a/option/logger.go b/option/logger.go index a78abcf..483f2ca 100644 --- a/option/logger.go +++ b/option/logger.go @@ -3,8 +3,8 @@ package option import ( "log" - F "github.com/ibm/fp-go/function" - L "github.com/ibm/fp-go/logging" + F "github.com/IBM/fp-go/function" + L "github.com/IBM/fp-go/logging" ) func _log[A any](left func(string, ...any), right func(string, ...any), prefix string) func(Option[A]) Option[A] { diff --git a/option/monoid.go b/option/monoid.go index 541a718..2097c43 100644 --- a/option/monoid.go +++ b/option/monoid.go @@ -1,9 +1,9 @@ package option import ( - F "github.com/ibm/fp-go/function" - M "github.com/ibm/fp-go/monoid" - S "github.com/ibm/fp-go/semigroup" + F "github.com/IBM/fp-go/function" + M "github.com/IBM/fp-go/monoid" + S "github.com/IBM/fp-go/semigroup" ) func Semigroup[A any]() func(S.Semigroup[A]) S.Semigroup[Option[A]] { diff --git a/option/number/number.go b/option/number/number.go index 4b86348..e3a107e 100644 --- a/option/number/number.go +++ b/option/number/number.go @@ -18,8 +18,8 @@ package number import ( "strconv" - F "github.com/ibm/fp-go/function" - O "github.com/ibm/fp-go/option" + F "github.com/IBM/fp-go/function" + O "github.com/IBM/fp-go/option" ) func atoi(value string) (int, bool) { diff --git a/option/option.go b/option/option.go index 6efec04..1c53cd0 100644 --- a/option/option.go +++ b/option/option.go @@ -2,7 +2,7 @@ package option import ( - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" ) func fromPredicate[A any](a A, pred func(A) bool) Option[A] { diff --git a/option/option_test.go b/option/option_test.go index 4345bb1..e37becf 100644 --- a/option/option_test.go +++ b/option/option_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - F "github.com/ibm/fp-go/function" - "github.com/ibm/fp-go/internal/utils" + F "github.com/IBM/fp-go/function" + "github.com/IBM/fp-go/internal/utils" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/option/record.go b/option/record.go index 61ea03a..1cfbd3f 100644 --- a/option/record.go +++ b/option/record.go @@ -1,8 +1,8 @@ package option import ( - F "github.com/ibm/fp-go/function" - RR "github.com/ibm/fp-go/internal/record" + F "github.com/IBM/fp-go/function" + RR "github.com/IBM/fp-go/internal/record" ) // TraverseRecord transforms a record of options into an option of a record diff --git a/option/sequence.go b/option/sequence.go index 963c7be..c65595a 100644 --- a/option/sequence.go +++ b/option/sequence.go @@ -1,7 +1,7 @@ package option import ( - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" ) // HKTA = HKT diff --git a/option/sequence_test.go b/option/sequence_test.go index ba7840d..be2da3e 100644 --- a/option/sequence_test.go +++ b/option/sequence_test.go @@ -3,7 +3,7 @@ package option import ( "testing" - T "github.com/ibm/fp-go/tuple" + T "github.com/IBM/fp-go/tuple" "github.com/stretchr/testify/assert" ) diff --git a/option/testing/laws.go b/option/testing/laws.go index ae282d8..a2b379d 100644 --- a/option/testing/laws.go +++ b/option/testing/laws.go @@ -3,9 +3,9 @@ package testing import ( "testing" - EQ "github.com/ibm/fp-go/eq" - L "github.com/ibm/fp-go/internal/monad/testing" - O "github.com/ibm/fp-go/option" + EQ "github.com/IBM/fp-go/eq" + L "github.com/IBM/fp-go/internal/monad/testing" + O "github.com/IBM/fp-go/option" ) // AssertLaws asserts the apply monad laws for the `Either` monad diff --git a/option/testing/laws_test.go b/option/testing/laws_test.go index 55d5288..7a530d7 100644 --- a/option/testing/laws_test.go +++ b/option/testing/laws_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - EQ "github.com/ibm/fp-go/eq" + EQ "github.com/IBM/fp-go/eq" "github.com/stretchr/testify/assert" ) diff --git a/option/type.go b/option/type.go index 5deb106..9800a92 100644 --- a/option/type.go +++ b/option/type.go @@ -1,7 +1,7 @@ package option import ( - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" ) func toType[T any](a any) (T, bool) { diff --git a/ord/monoid.go b/ord/monoid.go index 7e87603..b990973 100644 --- a/ord/monoid.go +++ b/ord/monoid.go @@ -1,9 +1,9 @@ package ord import ( - F "github.com/ibm/fp-go/function" - M "github.com/ibm/fp-go/monoid" - S "github.com/ibm/fp-go/semigroup" + F "github.com/IBM/fp-go/function" + M "github.com/IBM/fp-go/monoid" + S "github.com/IBM/fp-go/semigroup" ) // Semigroup implements a two level ordering diff --git a/ord/ord.go b/ord/ord.go index 496aaaf..d0f87af 100644 --- a/ord/ord.go +++ b/ord/ord.go @@ -1,10 +1,10 @@ package ord import ( - C "github.com/ibm/fp-go/constraints" - E "github.com/ibm/fp-go/eq" - F "github.com/ibm/fp-go/function" - P "github.com/ibm/fp-go/predicate" + C "github.com/IBM/fp-go/constraints" + E "github.com/IBM/fp-go/eq" + F "github.com/IBM/fp-go/function" + P "github.com/IBM/fp-go/predicate" ) type Ord[T any] interface { diff --git a/predicate/contramap.go b/predicate/contramap.go index 2ed5cd5..ba8a40f 100644 --- a/predicate/contramap.go +++ b/predicate/contramap.go @@ -1,7 +1,7 @@ package predicate import ( - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" ) // ContraMap creates a predicate from an existing predicate given a mapping function diff --git a/predicate/monoid.go b/predicate/monoid.go index 968a16d..3ff42c8 100644 --- a/predicate/monoid.go +++ b/predicate/monoid.go @@ -1,9 +1,9 @@ package predicate import ( - F "github.com/ibm/fp-go/function" - M "github.com/ibm/fp-go/monoid" - S "github.com/ibm/fp-go/semigroup" + F "github.com/IBM/fp-go/function" + M "github.com/IBM/fp-go/monoid" + S "github.com/IBM/fp-go/semigroup" ) // SemigroupAny combines predicates via || diff --git a/reader/array.go b/reader/array.go index b65f755..2a90415 100644 --- a/reader/array.go +++ b/reader/array.go @@ -1,7 +1,7 @@ package reader import ( - G "github.com/ibm/fp-go/reader/generic" + G "github.com/IBM/fp-go/reader/generic" ) // TraverseArray transforms an array diff --git a/reader/array_test.go b/reader/array_test.go index dc53360..de401ed 100644 --- a/reader/array_test.go +++ b/reader/array_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - A "github.com/ibm/fp-go/array" - F "github.com/ibm/fp-go/function" + A "github.com/IBM/fp-go/array" + F "github.com/IBM/fp-go/function" "github.com/stretchr/testify/assert" ) diff --git a/reader/curry.go b/reader/curry.go index 30f47b4..a955909 100644 --- a/reader/curry.go +++ b/reader/curry.go @@ -1,7 +1,7 @@ package reader import ( - G "github.com/ibm/fp-go/reader/generic" + G "github.com/IBM/fp-go/reader/generic" ) // these functions curry a golang function with the context as the firsr parameter into a reader with the context as the last parameter, which diff --git a/reader/gen.go b/reader/gen.go index b0fd15b..5754725 100644 --- a/reader/gen.go +++ b/reader/gen.go @@ -5,7 +5,7 @@ package reader import ( - G "github.com/ibm/fp-go/reader/generic" + G "github.com/IBM/fp-go/reader/generic" ) // From0 converts a function with 1 parameters returning a [R] into a function with 0 parameters returning a [Reader[C, R]] diff --git a/reader/generic/array.go b/reader/generic/array.go index 0108f7f..bf943dc 100644 --- a/reader/generic/array.go +++ b/reader/generic/array.go @@ -1,8 +1,8 @@ package generic import ( - F "github.com/ibm/fp-go/function" - RA "github.com/ibm/fp-go/internal/array" + F "github.com/IBM/fp-go/function" + RA "github.com/IBM/fp-go/internal/array" ) // TraverseArray transforms an array diff --git a/reader/generic/curry.go b/reader/generic/curry.go index cfdfac9..262a0b2 100644 --- a/reader/generic/curry.go +++ b/reader/generic/curry.go @@ -1,7 +1,7 @@ package generic import ( - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" ) // these functions curry a golang function with the context as the firsr parameter into a reader with the context as the last parameter, which diff --git a/reader/generic/reader.go b/reader/generic/reader.go index 1a9ac2e..47095a3 100644 --- a/reader/generic/reader.go +++ b/reader/generic/reader.go @@ -1,9 +1,9 @@ package generic import ( - F "github.com/ibm/fp-go/function" - I "github.com/ibm/fp-go/identity/generic" - T "github.com/ibm/fp-go/tuple" + F "github.com/IBM/fp-go/function" + I "github.com/IBM/fp-go/identity/generic" + T "github.com/IBM/fp-go/tuple" ) // Reader[R, A] = func(R) A diff --git a/reader/generic/sequence.go b/reader/generic/sequence.go index 20112fa..01bf8f4 100644 --- a/reader/generic/sequence.go +++ b/reader/generic/sequence.go @@ -1,8 +1,8 @@ package generic import ( - "github.com/ibm/fp-go/internal/apply" - T "github.com/ibm/fp-go/tuple" + "github.com/IBM/fp-go/internal/apply" + T "github.com/IBM/fp-go/tuple" ) // SequenceT converts n inputs of higher kinded types into a higher kinded types of n strongly typed values, represented as a tuple diff --git a/reader/reader.go b/reader/reader.go index 23804cd..1a6825f 100644 --- a/reader/reader.go +++ b/reader/reader.go @@ -1,8 +1,8 @@ package reader import ( - G "github.com/ibm/fp-go/reader/generic" - T "github.com/ibm/fp-go/tuple" + G "github.com/IBM/fp-go/reader/generic" + T "github.com/IBM/fp-go/tuple" ) // The purpose of the `Reader` monad is to avoid threading arguments through multiple functions in order to only get them where they are needed. diff --git a/reader/reader_test.go b/reader/reader_test.go index ad52830..3124aa0 100644 --- a/reader/reader_test.go +++ b/reader/reader_test.go @@ -3,10 +3,10 @@ package reader import ( "testing" - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" "github.com/stretchr/testify/assert" - "github.com/ibm/fp-go/internal/utils" + "github.com/IBM/fp-go/internal/utils" ) func TestMap(t *testing.T) { diff --git a/reader/semigroup.go b/reader/semigroup.go index f3f2acd..62bfc7d 100644 --- a/reader/semigroup.go +++ b/reader/semigroup.go @@ -1,8 +1,8 @@ package reader import ( - M "github.com/ibm/fp-go/monoid" - S "github.com/ibm/fp-go/semigroup" + M "github.com/IBM/fp-go/monoid" + S "github.com/IBM/fp-go/semigroup" ) func ApplySemigroup[R, A any]( diff --git a/reader/sequence.go b/reader/sequence.go index b93a636..b189763 100644 --- a/reader/sequence.go +++ b/reader/sequence.go @@ -1,8 +1,8 @@ package reader import ( - G "github.com/ibm/fp-go/reader/generic" - T "github.com/ibm/fp-go/tuple" + G "github.com/IBM/fp-go/reader/generic" + T "github.com/IBM/fp-go/tuple" ) // SequenceT converts n inputs of higher kinded types into a higher kinded types of n strongly typed values, represented as a tuple diff --git a/readereither/array.go b/readereither/array.go index 9b6addf..f66be5f 100644 --- a/readereither/array.go +++ b/readereither/array.go @@ -1,7 +1,7 @@ package readereither import ( - G "github.com/ibm/fp-go/readereither/generic" + G "github.com/IBM/fp-go/readereither/generic" ) // TraverseArray transforms an array diff --git a/readereither/array_test.go b/readereither/array_test.go index 9137612..7464eca 100644 --- a/readereither/array_test.go +++ b/readereither/array_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - A "github.com/ibm/fp-go/array" - ET "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" + A "github.com/IBM/fp-go/array" + ET "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" "github.com/stretchr/testify/assert" ) diff --git a/readereither/curry.go b/readereither/curry.go index 309930a..c079cdd 100644 --- a/readereither/curry.go +++ b/readereither/curry.go @@ -1,7 +1,7 @@ package readereither import ( - G "github.com/ibm/fp-go/readereither/generic" + G "github.com/IBM/fp-go/readereither/generic" ) // these functions curry a golang function with the context as the firsr parameter into a either reader with the context as the last parameter diff --git a/readereither/from.go b/readereither/from.go index 59e2ebb..effeaa0 100644 --- a/readereither/from.go +++ b/readereither/from.go @@ -1,7 +1,7 @@ package readereither import ( - G "github.com/ibm/fp-go/readereither/generic" + G "github.com/IBM/fp-go/readereither/generic" ) // these functions curry a golang function with the context as the firsr parameter into a either reader with the context as the last parameter diff --git a/readereither/generic/array.go b/readereither/generic/array.go index 0feeb59..30ea342 100644 --- a/readereither/generic/array.go +++ b/readereither/generic/array.go @@ -1,9 +1,9 @@ package generic import ( - ET "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" - RA "github.com/ibm/fp-go/internal/array" + ET "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" + RA "github.com/IBM/fp-go/internal/array" ) // MonadTraverseArray transforms an array diff --git a/readereither/generic/curry.go b/readereither/generic/curry.go index 4daeb24..96d9fa5 100644 --- a/readereither/generic/curry.go +++ b/readereither/generic/curry.go @@ -1,8 +1,8 @@ package generic import ( - ET "github.com/ibm/fp-go/either" - G "github.com/ibm/fp-go/reader/generic" + ET "github.com/IBM/fp-go/either" + G "github.com/IBM/fp-go/reader/generic" ) // these functions curry a golang function with the context as the firsr parameter into a either reader with the context as the last parameter diff --git a/readereither/generic/from.go b/readereither/generic/from.go index d7b9eea..a9a77d4 100644 --- a/readereither/generic/from.go +++ b/readereither/generic/from.go @@ -1,8 +1,8 @@ package generic import ( - ET "github.com/ibm/fp-go/either" - G "github.com/ibm/fp-go/reader/generic" + ET "github.com/IBM/fp-go/either" + G "github.com/IBM/fp-go/reader/generic" ) // these functions From a golang function with the context as the firsr parameter into a either reader with the context as the last parameter diff --git a/readereither/generic/reader.go b/readereither/generic/reader.go index 0710fff..4d2bbdc 100644 --- a/readereither/generic/reader.go +++ b/readereither/generic/reader.go @@ -1,14 +1,14 @@ package generic import ( - ET "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" - "github.com/ibm/fp-go/internal/eithert" - FE "github.com/ibm/fp-go/internal/fromeither" - FR "github.com/ibm/fp-go/internal/fromreader" - "github.com/ibm/fp-go/internal/readert" - O "github.com/ibm/fp-go/option" - R "github.com/ibm/fp-go/reader/generic" + ET "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" + "github.com/IBM/fp-go/internal/eithert" + FE "github.com/IBM/fp-go/internal/fromeither" + FR "github.com/IBM/fp-go/internal/fromreader" + "github.com/IBM/fp-go/internal/readert" + O "github.com/IBM/fp-go/option" + R "github.com/IBM/fp-go/reader/generic" ) func MakeReaderEither[GEA ~func(E) ET.Either[L, A], L, E, A any](f func(E) ET.Either[L, A]) GEA { diff --git a/readereither/generic/sequence.go b/readereither/generic/sequence.go index d16c6c5..ba830bf 100644 --- a/readereither/generic/sequence.go +++ b/readereither/generic/sequence.go @@ -1,9 +1,9 @@ package generic import ( - ET "github.com/ibm/fp-go/either" - "github.com/ibm/fp-go/internal/apply" - T "github.com/ibm/fp-go/tuple" + ET "github.com/IBM/fp-go/either" + "github.com/IBM/fp-go/internal/apply" + T "github.com/IBM/fp-go/tuple" ) // SequenceT converts n inputs of higher kinded types into a higher kinded types of n strongly typed values, represented as a tuple diff --git a/readereither/reader.go b/readereither/reader.go index 90dd920..3053455 100644 --- a/readereither/reader.go +++ b/readereither/reader.go @@ -1,10 +1,10 @@ package readereither import ( - ET "github.com/ibm/fp-go/either" - O "github.com/ibm/fp-go/option" - R "github.com/ibm/fp-go/reader" - G "github.com/ibm/fp-go/readereither/generic" + ET "github.com/IBM/fp-go/either" + O "github.com/IBM/fp-go/option" + R "github.com/IBM/fp-go/reader" + G "github.com/IBM/fp-go/readereither/generic" ) type ReaderEither[E, L, A any] R.Reader[E, ET.Either[L, A]] diff --git a/readereither/reader_test.go b/readereither/reader_test.go index 86d2175..41e1e14 100644 --- a/readereither/reader_test.go +++ b/readereither/reader_test.go @@ -3,9 +3,9 @@ package readereither import ( "testing" - ET "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" - "github.com/ibm/fp-go/internal/utils" + ET "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" + "github.com/IBM/fp-go/internal/utils" "github.com/stretchr/testify/assert" ) diff --git a/readereither/sequence.go b/readereither/sequence.go index 08a8c46..0ce095e 100644 --- a/readereither/sequence.go +++ b/readereither/sequence.go @@ -1,8 +1,8 @@ package readereither import ( - G "github.com/ibm/fp-go/readereither/generic" - T "github.com/ibm/fp-go/tuple" + G "github.com/IBM/fp-go/readereither/generic" + T "github.com/IBM/fp-go/tuple" ) // SequenceT converts n inputs of higher kinded types into a higher kinded types of n strongly typed values, represented as a tuple diff --git a/readereither/sequence_test.go b/readereither/sequence_test.go index 0bd5bc5..e5818e6 100644 --- a/readereither/sequence_test.go +++ b/readereither/sequence_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - E "github.com/ibm/fp-go/either" - T "github.com/ibm/fp-go/tuple" + E "github.com/IBM/fp-go/either" + T "github.com/IBM/fp-go/tuple" "github.com/stretchr/testify/assert" ) diff --git a/readerio/ap.go b/readerio/ap.go index 69281ea..ad31276 100644 --- a/readerio/ap.go +++ b/readerio/ap.go @@ -1,7 +1,7 @@ package readerio import ( - G "github.com/ibm/fp-go/readerio/generic" + G "github.com/IBM/fp-go/readerio/generic" ) // MonadApFirst combines two effectful actions, keeping only the result of the first. diff --git a/readerio/array.go b/readerio/array.go index 56ab028..813572c 100644 --- a/readerio/array.go +++ b/readerio/array.go @@ -1,8 +1,8 @@ package readerio import ( - IO "github.com/ibm/fp-go/io" - G "github.com/ibm/fp-go/readerio/generic" + IO "github.com/IBM/fp-go/io" + G "github.com/IBM/fp-go/readerio/generic" ) // TraverseArray transforms an array diff --git a/readerio/array_test.go b/readerio/array_test.go index 2308af4..ceba95b 100644 --- a/readerio/array_test.go +++ b/readerio/array_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - A "github.com/ibm/fp-go/array" - F "github.com/ibm/fp-go/function" + A "github.com/IBM/fp-go/array" + F "github.com/IBM/fp-go/function" "github.com/stretchr/testify/assert" ) diff --git a/readerio/eq.go b/readerio/eq.go index d5f66f5..44621e1 100644 --- a/readerio/eq.go +++ b/readerio/eq.go @@ -1,8 +1,8 @@ package readerio import ( - EQ "github.com/ibm/fp-go/eq" - G "github.com/ibm/fp-go/readerio/generic" + EQ "github.com/IBM/fp-go/eq" + G "github.com/IBM/fp-go/readerio/generic" ) // Eq implements the equals predicate for values contained in the IO monad diff --git a/readerio/from.go b/readerio/from.go index d65e3c0..e401139 100644 --- a/readerio/from.go +++ b/readerio/from.go @@ -1,8 +1,8 @@ package readerio import ( - IO "github.com/ibm/fp-go/io" - G "github.com/ibm/fp-go/readerio/generic" + IO "github.com/IBM/fp-go/io" + G "github.com/IBM/fp-go/readerio/generic" ) // these functions From a golang function with the context as the firsr parameter into a either reader with the context as the last parameter diff --git a/readerio/generic/ap.go b/readerio/generic/ap.go index e2a2df8..a09d206 100644 --- a/readerio/generic/ap.go +++ b/readerio/generic/ap.go @@ -1,7 +1,7 @@ package generic import ( - G "github.com/ibm/fp-go/internal/apply" + G "github.com/IBM/fp-go/internal/apply" ) // MonadApFirst combines two effectful actions, keeping only the result of the first. diff --git a/readerio/generic/array.go b/readerio/generic/array.go index ad0eefb..62cf339 100644 --- a/readerio/generic/array.go +++ b/readerio/generic/array.go @@ -1,8 +1,8 @@ package generic import ( - F "github.com/ibm/fp-go/function" - RA "github.com/ibm/fp-go/internal/array" + F "github.com/IBM/fp-go/function" + RA "github.com/IBM/fp-go/internal/array" ) // MonadTraverseArray transforms an array diff --git a/readerio/generic/eq.go b/readerio/generic/eq.go index e97fe10..a220f86 100644 --- a/readerio/generic/eq.go +++ b/readerio/generic/eq.go @@ -1,8 +1,8 @@ package generic import ( - EQ "github.com/ibm/fp-go/eq" - G "github.com/ibm/fp-go/internal/eq" + EQ "github.com/IBM/fp-go/eq" + G "github.com/IBM/fp-go/internal/eq" ) // Eq implements the equals predicate for values contained in the IO monad diff --git a/readerio/generic/from.go b/readerio/generic/from.go index 1b84843..e39470a 100644 --- a/readerio/generic/from.go +++ b/readerio/generic/from.go @@ -1,7 +1,7 @@ package generic import ( - G "github.com/ibm/fp-go/reader/generic" + G "github.com/IBM/fp-go/reader/generic" ) // these functions From a golang function with the context as the firsr parameter into a either reader with the context as the last parameter diff --git a/readerio/generic/reader.go b/readerio/generic/reader.go index 722489f..3823f7b 100644 --- a/readerio/generic/reader.go +++ b/readerio/generic/reader.go @@ -1,11 +1,11 @@ package generic import ( - F "github.com/ibm/fp-go/function" - FR "github.com/ibm/fp-go/internal/fromreader" - "github.com/ibm/fp-go/internal/readert" - IO "github.com/ibm/fp-go/io/generic" - R "github.com/ibm/fp-go/reader/generic" + F "github.com/IBM/fp-go/function" + FR "github.com/IBM/fp-go/internal/fromreader" + "github.com/IBM/fp-go/internal/readert" + IO "github.com/IBM/fp-go/io/generic" + R "github.com/IBM/fp-go/reader/generic" ) func FromIO[GEA ~func(E) GIOA, GIOA ~func() A, E, A any](t GIOA) GEA { diff --git a/readerio/generic/sequence.go b/readerio/generic/sequence.go index 4dcf71d..93f2753 100644 --- a/readerio/generic/sequence.go +++ b/readerio/generic/sequence.go @@ -1,8 +1,8 @@ package generic import ( - "github.com/ibm/fp-go/internal/apply" - T "github.com/ibm/fp-go/tuple" + "github.com/IBM/fp-go/internal/apply" + T "github.com/IBM/fp-go/tuple" ) // SequenceT converts n inputs of higher kinded types into a higher kinded types of n strongly typed values, represented as a tuple diff --git a/readerio/reader.go b/readerio/reader.go index 86f8a09..57f4d0e 100644 --- a/readerio/reader.go +++ b/readerio/reader.go @@ -1,9 +1,9 @@ package readerio import ( - IO "github.com/ibm/fp-go/io" - R "github.com/ibm/fp-go/reader" - G "github.com/ibm/fp-go/readerio/generic" + IO "github.com/IBM/fp-go/io" + R "github.com/IBM/fp-go/reader" + G "github.com/IBM/fp-go/readerio/generic" ) type ReaderIO[E, A any] R.Reader[E, IO.IO[A]] diff --git a/readerio/reader_test.go b/readerio/reader_test.go index 55628ee..8b6e07a 100644 --- a/readerio/reader_test.go +++ b/readerio/reader_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - F "github.com/ibm/fp-go/function" - "github.com/ibm/fp-go/internal/utils" + F "github.com/IBM/fp-go/function" + "github.com/IBM/fp-go/internal/utils" "github.com/stretchr/testify/assert" ) diff --git a/readerio/sequence.go b/readerio/sequence.go index fe44b28..e570afe 100644 --- a/readerio/sequence.go +++ b/readerio/sequence.go @@ -1,8 +1,8 @@ package readerio import ( - G "github.com/ibm/fp-go/readerio/generic" - T "github.com/ibm/fp-go/tuple" + G "github.com/IBM/fp-go/readerio/generic" + T "github.com/IBM/fp-go/tuple" ) // SequenceT converts n inputs of higher kinded types into a higher kinded types of n strongly typed values, represented as a tuple diff --git a/readerioeither/array_test.go b/readerioeither/array_test.go index 316299e..a0174ef 100644 --- a/readerioeither/array_test.go +++ b/readerioeither/array_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - A "github.com/ibm/fp-go/array" - ET "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" + A "github.com/IBM/fp-go/array" + ET "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" "github.com/stretchr/testify/assert" ) diff --git a/readerioeither/bracket.go b/readerioeither/bracket.go index 0c8113e..65a04ba 100644 --- a/readerioeither/bracket.go +++ b/readerioeither/bracket.go @@ -1,8 +1,8 @@ package readerioeither import ( - ET "github.com/ibm/fp-go/either" - G "github.com/ibm/fp-go/readerioeither/generic" + ET "github.com/IBM/fp-go/either" + G "github.com/IBM/fp-go/readerioeither/generic" ) // Bracket makes sure that a resource is cleaned up in the event of an error. The release action is called regardless of diff --git a/readerioeither/eq.go b/readerioeither/eq.go index da4e030..b800820 100644 --- a/readerioeither/eq.go +++ b/readerioeither/eq.go @@ -1,9 +1,9 @@ package readerioeither import ( - ET "github.com/ibm/fp-go/either" - EQ "github.com/ibm/fp-go/eq" - G "github.com/ibm/fp-go/readerioeither/generic" + ET "github.com/IBM/fp-go/either" + EQ "github.com/IBM/fp-go/eq" + G "github.com/IBM/fp-go/readerioeither/generic" ) // Eq implements the equals predicate for values contained in the IOEither monad diff --git a/readerioeither/gen.go b/readerioeither/gen.go index 7194115..933a9fc 100644 --- a/readerioeither/gen.go +++ b/readerioeither/gen.go @@ -5,7 +5,7 @@ package readerioeither import ( - G "github.com/ibm/fp-go/readerioeither/generic" + G "github.com/IBM/fp-go/readerioeither/generic" ) // From0 converts a function with 1 parameters returning a tuple into a function with 0 parameters returning a [ReaderIOEither[R]] diff --git a/readerioeither/generic/bracket.go b/readerioeither/generic/bracket.go index 32f789c..3eb0793 100644 --- a/readerioeither/generic/bracket.go +++ b/readerioeither/generic/bracket.go @@ -1,9 +1,9 @@ package generic import ( - ET "github.com/ibm/fp-go/either" - G "github.com/ibm/fp-go/internal/file" - I "github.com/ibm/fp-go/readerio/generic" + ET "github.com/IBM/fp-go/either" + G "github.com/IBM/fp-go/internal/file" + I "github.com/IBM/fp-go/readerio/generic" ) // Bracket makes sure that a resource is cleaned up in the event of an error. The release action is called regardless of diff --git a/readerioeither/generic/eq.go b/readerioeither/generic/eq.go index a98762d..dcdb66e 100644 --- a/readerioeither/generic/eq.go +++ b/readerioeither/generic/eq.go @@ -1,9 +1,9 @@ package generic import ( - ET "github.com/ibm/fp-go/either" - EQ "github.com/ibm/fp-go/eq" - G "github.com/ibm/fp-go/readerio/generic" + ET "github.com/IBM/fp-go/either" + EQ "github.com/IBM/fp-go/eq" + G "github.com/IBM/fp-go/readerio/generic" ) // Eq implements the equals predicate for values contained in the IOEither monad diff --git a/readerioeither/generic/gen.go b/readerioeither/generic/gen.go index 643f692..d0b0de7 100644 --- a/readerioeither/generic/gen.go +++ b/readerioeither/generic/gen.go @@ -5,8 +5,8 @@ package generic import ( - E "github.com/ibm/fp-go/either" - RD "github.com/ibm/fp-go/reader/generic" + E "github.com/IBM/fp-go/either" + RD "github.com/IBM/fp-go/reader/generic" ) // From0 converts a function with 1 parameters returning a tuple into a function with 0 parameters returning a [GRA] diff --git a/readerioeither/generic/reader.go b/readerioeither/generic/reader.go index a8b9b03..53284e4 100644 --- a/readerioeither/generic/reader.go +++ b/readerioeither/generic/reader.go @@ -1,18 +1,18 @@ package generic import ( - ET "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" - C "github.com/ibm/fp-go/internal/chain" - "github.com/ibm/fp-go/internal/eithert" - FE "github.com/ibm/fp-go/internal/fromeither" - FIO "github.com/ibm/fp-go/internal/fromio" - FIOE "github.com/ibm/fp-go/internal/fromioeither" - FR "github.com/ibm/fp-go/internal/fromreader" - IOE "github.com/ibm/fp-go/ioeither/generic" - O "github.com/ibm/fp-go/option" - RD "github.com/ibm/fp-go/reader/generic" - G "github.com/ibm/fp-go/readerio/generic" + ET "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" + C "github.com/IBM/fp-go/internal/chain" + "github.com/IBM/fp-go/internal/eithert" + FE "github.com/IBM/fp-go/internal/fromeither" + FIO "github.com/IBM/fp-go/internal/fromio" + FIOE "github.com/IBM/fp-go/internal/fromioeither" + FR "github.com/IBM/fp-go/internal/fromreader" + IOE "github.com/IBM/fp-go/ioeither/generic" + O "github.com/IBM/fp-go/option" + RD "github.com/IBM/fp-go/reader/generic" + G "github.com/IBM/fp-go/readerio/generic" ) // MakeReader constructs an instance of a reader diff --git a/readerioeither/generic/resource.go b/readerioeither/generic/resource.go index a6f8617..a8e560c 100644 --- a/readerioeither/generic/resource.go +++ b/readerioeither/generic/resource.go @@ -1,8 +1,8 @@ package generic import ( - ET "github.com/ibm/fp-go/either" - IOE "github.com/ibm/fp-go/ioeither/generic" + ET "github.com/IBM/fp-go/either" + IOE "github.com/IBM/fp-go/ioeither/generic" ) // WithResource constructs a function that creates a resource, then operates on it and then releases the resource diff --git a/readerioeither/generic/sequence.go b/readerioeither/generic/sequence.go index 4cc6898..3cec94a 100644 --- a/readerioeither/generic/sequence.go +++ b/readerioeither/generic/sequence.go @@ -1,9 +1,9 @@ package generic import ( - ET "github.com/ibm/fp-go/either" - "github.com/ibm/fp-go/internal/apply" - T "github.com/ibm/fp-go/tuple" + ET "github.com/IBM/fp-go/either" + "github.com/IBM/fp-go/internal/apply" + T "github.com/IBM/fp-go/tuple" ) // SequenceT converts n inputs of higher kinded types into a higher kinded types of n strongly typed values, represented as a tuple diff --git a/readerioeither/generic/traverse.go b/readerioeither/generic/traverse.go index cce136f..ae8f8ae 100644 --- a/readerioeither/generic/traverse.go +++ b/readerioeither/generic/traverse.go @@ -1,10 +1,10 @@ package generic import ( - ET "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" - RA "github.com/ibm/fp-go/internal/array" - RR "github.com/ibm/fp-go/internal/record" + ET "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" + RA "github.com/IBM/fp-go/internal/array" + RR "github.com/IBM/fp-go/internal/record" ) // MonadTraverseArray transforms an array diff --git a/readerioeither/reader.go b/readerioeither/reader.go index 88d1be2..9363133 100644 --- a/readerioeither/reader.go +++ b/readerioeither/reader.go @@ -1,14 +1,14 @@ package readerioeither import ( - ET "github.com/ibm/fp-go/either" - "github.com/ibm/fp-go/io" - IOE "github.com/ibm/fp-go/ioeither" - O "github.com/ibm/fp-go/option" - RD "github.com/ibm/fp-go/reader" - RE "github.com/ibm/fp-go/readereither" - RIO "github.com/ibm/fp-go/readerio" - G "github.com/ibm/fp-go/readerioeither/generic" + ET "github.com/IBM/fp-go/either" + "github.com/IBM/fp-go/io" + IOE "github.com/IBM/fp-go/ioeither" + O "github.com/IBM/fp-go/option" + RD "github.com/IBM/fp-go/reader" + RE "github.com/IBM/fp-go/readereither" + RIO "github.com/IBM/fp-go/readerio" + G "github.com/IBM/fp-go/readerioeither/generic" ) type ReaderIOEither[R, E, A any] RD.Reader[R, IOE.IOEither[E, A]] diff --git a/readerioeither/reader_test.go b/readerioeither/reader_test.go index 6a0adf9..4b2be79 100644 --- a/readerioeither/reader_test.go +++ b/readerioeither/reader_test.go @@ -5,11 +5,11 @@ import ( "fmt" "testing" - E "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" - "github.com/ibm/fp-go/internal/utils" - R "github.com/ibm/fp-go/reader" - RIO "github.com/ibm/fp-go/readerio" + E "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" + "github.com/IBM/fp-go/internal/utils" + R "github.com/IBM/fp-go/reader" + RIO "github.com/IBM/fp-go/readerio" "github.com/stretchr/testify/assert" ) diff --git a/readerioeither/resource.go b/readerioeither/resource.go index 06b61a7..3bde685 100644 --- a/readerioeither/resource.go +++ b/readerioeither/resource.go @@ -1,7 +1,7 @@ package readerioeither import ( - G "github.com/ibm/fp-go/readerioeither/generic" + G "github.com/IBM/fp-go/readerioeither/generic" ) // WithResource constructs a function that creates a resource, then operates on it and then releases the resource diff --git a/readerioeither/sequence.go b/readerioeither/sequence.go index bda1d8f..c30684b 100644 --- a/readerioeither/sequence.go +++ b/readerioeither/sequence.go @@ -1,8 +1,8 @@ package readerioeither import ( - G "github.com/ibm/fp-go/readerioeither/generic" - T "github.com/ibm/fp-go/tuple" + G "github.com/IBM/fp-go/readerioeither/generic" + T "github.com/IBM/fp-go/tuple" ) // SequenceT converts n inputs of higher kinded types into a higher kinded types of n strongly typed values, represented as a tuple diff --git a/readerioeither/sequence_test.go b/readerioeither/sequence_test.go index 3ce0656..ab4b37b 100644 --- a/readerioeither/sequence_test.go +++ b/readerioeither/sequence_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - ET "github.com/ibm/fp-go/either" - T "github.com/ibm/fp-go/tuple" + ET "github.com/IBM/fp-go/either" + T "github.com/IBM/fp-go/tuple" "github.com/stretchr/testify/assert" ) diff --git a/readerioeither/traverse.go b/readerioeither/traverse.go index 535bfab..89176a1 100644 --- a/readerioeither/traverse.go +++ b/readerioeither/traverse.go @@ -1,8 +1,8 @@ package readerioeither import ( - IOE "github.com/ibm/fp-go/ioeither" - G "github.com/ibm/fp-go/readerioeither/generic" + IOE "github.com/IBM/fp-go/ioeither" + G "github.com/IBM/fp-go/readerioeither/generic" ) // TraverseArray transforms an array diff --git a/record/eq.go b/record/eq.go index 6dc62be..2caa9e8 100644 --- a/record/eq.go +++ b/record/eq.go @@ -1,8 +1,8 @@ package record import ( - E "github.com/ibm/fp-go/eq" - G "github.com/ibm/fp-go/record/generic" + E "github.com/IBM/fp-go/eq" + G "github.com/IBM/fp-go/record/generic" ) func Eq[K comparable, V any](e E.Eq[V]) E.Eq[map[K]V] { diff --git a/record/generic/eq.go b/record/generic/eq.go index c367cb6..1df4efc 100644 --- a/record/generic/eq.go +++ b/record/generic/eq.go @@ -1,7 +1,7 @@ package generic import ( - E "github.com/ibm/fp-go/eq" + E "github.com/IBM/fp-go/eq" ) func equals[M ~map[K]V, K comparable, V any](left, right M, eq func(V, V) bool) bool { diff --git a/record/generic/monoid.go b/record/generic/monoid.go index 4f827d7..f2d9365 100644 --- a/record/generic/monoid.go +++ b/record/generic/monoid.go @@ -1,8 +1,8 @@ package generic import ( - M "github.com/ibm/fp-go/monoid" - S "github.com/ibm/fp-go/semigroup" + M "github.com/IBM/fp-go/monoid" + S "github.com/IBM/fp-go/semigroup" ) func UnionMonoid[N ~map[K]V, K comparable, V any](s S.Semigroup[V]) M.Monoid[N] { diff --git a/record/generic/record.go b/record/generic/record.go index f58463e..b259f59 100644 --- a/record/generic/record.go +++ b/record/generic/record.go @@ -1,11 +1,11 @@ package generic import ( - F "github.com/ibm/fp-go/function" - G "github.com/ibm/fp-go/internal/record" - Mg "github.com/ibm/fp-go/magma" - O "github.com/ibm/fp-go/option" - T "github.com/ibm/fp-go/tuple" + F "github.com/IBM/fp-go/function" + G "github.com/IBM/fp-go/internal/record" + Mg "github.com/IBM/fp-go/magma" + O "github.com/IBM/fp-go/option" + T "github.com/IBM/fp-go/tuple" ) func IsEmpty[M ~map[K]V, K comparable, V any](r M) bool { diff --git a/record/generic/semigroup.go b/record/generic/semigroup.go index 03e8622..43b22d0 100644 --- a/record/generic/semigroup.go +++ b/record/generic/semigroup.go @@ -1,7 +1,7 @@ package generic import ( - S "github.com/ibm/fp-go/semigroup" + S "github.com/IBM/fp-go/semigroup" ) func UnionSemigroup[N ~map[K]V, K comparable, V any](s S.Semigroup[V]) S.Semigroup[N] { diff --git a/record/monoid.go b/record/monoid.go index 667f32e..dbfae47 100644 --- a/record/monoid.go +++ b/record/monoid.go @@ -1,9 +1,9 @@ package record import ( - M "github.com/ibm/fp-go/monoid" - G "github.com/ibm/fp-go/record/generic" - S "github.com/ibm/fp-go/semigroup" + M "github.com/IBM/fp-go/monoid" + G "github.com/IBM/fp-go/record/generic" + S "github.com/IBM/fp-go/semigroup" ) func UnionMonoid[K comparable, V any](s S.Semigroup[V]) M.Monoid[map[K]V] { diff --git a/record/monoid_test.go b/record/monoid_test.go index 0f6ce99..cf44c68 100644 --- a/record/monoid_test.go +++ b/record/monoid_test.go @@ -18,7 +18,7 @@ package record import ( "testing" - S "github.com/ibm/fp-go/string" + S "github.com/IBM/fp-go/string" "github.com/stretchr/testify/assert" ) diff --git a/record/record.go b/record/record.go index eb44628..7cefd50 100644 --- a/record/record.go +++ b/record/record.go @@ -1,10 +1,10 @@ package record import ( - Mg "github.com/ibm/fp-go/magma" - O "github.com/ibm/fp-go/option" - G "github.com/ibm/fp-go/record/generic" - T "github.com/ibm/fp-go/tuple" + Mg "github.com/IBM/fp-go/magma" + O "github.com/IBM/fp-go/option" + G "github.com/IBM/fp-go/record/generic" + T "github.com/IBM/fp-go/tuple" ) func IsEmpty[K comparable, V any](r map[K]V) bool { diff --git a/record/record_test.go b/record/record_test.go index a216959..6055000 100644 --- a/record/record_test.go +++ b/record/record_test.go @@ -4,8 +4,8 @@ import ( "sort" "testing" - "github.com/ibm/fp-go/internal/utils" - O "github.com/ibm/fp-go/option" + "github.com/IBM/fp-go/internal/utils" + O "github.com/IBM/fp-go/option" "github.com/stretchr/testify/assert" ) diff --git a/record/semigroup.go b/record/semigroup.go index 8a95402..c72efc4 100644 --- a/record/semigroup.go +++ b/record/semigroup.go @@ -15,8 +15,8 @@ package record import ( - G "github.com/ibm/fp-go/record/generic" - S "github.com/ibm/fp-go/semigroup" + G "github.com/IBM/fp-go/record/generic" + S "github.com/IBM/fp-go/semigroup" ) func UnionSemigroup[K comparable, V any](s S.Semigroup[V]) S.Semigroup[map[K]V] { diff --git a/record/traverse.go b/record/traverse.go index c546eb9..14388dd 100644 --- a/record/traverse.go +++ b/record/traverse.go @@ -1,7 +1,7 @@ package record import ( - G "github.com/ibm/fp-go/internal/record" + G "github.com/IBM/fp-go/internal/record" ) func TraverseWithIndex[K comparable, A, B, HKTB, HKTAB, HKTRB any]( diff --git a/record/traverse_test.go b/record/traverse_test.go index c44a089..2308fa4 100644 --- a/record/traverse_test.go +++ b/record/traverse_test.go @@ -3,8 +3,8 @@ package record import ( "testing" - F "github.com/ibm/fp-go/function" - O "github.com/ibm/fp-go/option" + F "github.com/IBM/fp-go/function" + O "github.com/IBM/fp-go/option" "github.com/stretchr/testify/assert" ) diff --git a/retry/generic/retry.go b/retry/generic/retry.go index 0946ca3..a2a456e 100644 --- a/retry/generic/retry.go +++ b/retry/generic/retry.go @@ -3,9 +3,9 @@ package generic import ( "time" - F "github.com/ibm/fp-go/function" - O "github.com/ibm/fp-go/option" - R "github.com/ibm/fp-go/retry" + F "github.com/IBM/fp-go/function" + O "github.com/IBM/fp-go/option" + R "github.com/IBM/fp-go/retry" ) // Apply policy and delay by its amount if it results in a R. diff --git a/retry/retry.go b/retry/retry.go index 423d186..8837705 100644 --- a/retry/retry.go +++ b/retry/retry.go @@ -4,10 +4,10 @@ import ( "math" "time" - F "github.com/ibm/fp-go/function" - M "github.com/ibm/fp-go/monoid" - O "github.com/ibm/fp-go/option" - "github.com/ibm/fp-go/ord" + F "github.com/IBM/fp-go/function" + M "github.com/IBM/fp-go/monoid" + O "github.com/IBM/fp-go/option" + "github.com/IBM/fp-go/ord" ) type RetryStatus struct { diff --git a/samples/readfile/readfile_test.go b/samples/readfile/readfile_test.go index 73f1615..6d628bf 100644 --- a/samples/readfile/readfile_test.go +++ b/samples/readfile/readfile_test.go @@ -4,12 +4,12 @@ import ( "context" "testing" - R "github.com/ibm/fp-go/context/readerioeither" - "github.com/ibm/fp-go/context/readerioeither/file" - E "github.com/ibm/fp-go/either" - F "github.com/ibm/fp-go/function" - IO "github.com/ibm/fp-go/io" - J "github.com/ibm/fp-go/json" + R "github.com/IBM/fp-go/context/readerioeither" + "github.com/IBM/fp-go/context/readerioeither/file" + E "github.com/IBM/fp-go/either" + F "github.com/IBM/fp-go/function" + IO "github.com/IBM/fp-go/io" + J "github.com/IBM/fp-go/json" "github.com/stretchr/testify/assert" ) diff --git a/semigroup/apply.go b/semigroup/apply.go index b7b0ae1..f64eaea 100644 --- a/semigroup/apply.go +++ b/semigroup/apply.go @@ -1,7 +1,7 @@ package semigroup import ( - F "github.com/ibm/fp-go/function" + F "github.com/IBM/fp-go/function" ) /* diff --git a/semigroup/array.go b/semigroup/array.go index 361820f..ac9a0cd 100644 --- a/semigroup/array.go +++ b/semigroup/array.go @@ -1,7 +1,7 @@ package semigroup import ( - M "github.com/ibm/fp-go/magma" + M "github.com/IBM/fp-go/magma" ) func GenericMonadConcatAll[GA ~[]A, A any](s Semigroup[A]) func(GA, A) A { diff --git a/semigroup/ord/semigroup.go b/semigroup/ord/semigroup.go index 130a84b..9a80014 100644 --- a/semigroup/ord/semigroup.go +++ b/semigroup/ord/semigroup.go @@ -1,8 +1,8 @@ package ord import ( - O "github.com/ibm/fp-go/ord" - S "github.com/ibm/fp-go/semigroup" + O "github.com/IBM/fp-go/ord" + S "github.com/IBM/fp-go/semigroup" ) // Max gets a semigroup where `concat` will return the maximum, based on the provided order. diff --git a/semigroup/semigroup.go b/semigroup/semigroup.go index 9b6d645..628cbd4 100644 --- a/semigroup/semigroup.go +++ b/semigroup/semigroup.go @@ -1,8 +1,8 @@ package semigroup import ( - F "github.com/ibm/fp-go/function" - M "github.com/ibm/fp-go/magma" + F "github.com/IBM/fp-go/function" + M "github.com/IBM/fp-go/magma" ) type Semigroup[A any] interface { diff --git a/string/monoid.go b/string/monoid.go index a541fb4..0d6ef5d 100644 --- a/string/monoid.go +++ b/string/monoid.go @@ -1,7 +1,7 @@ package string import ( - M "github.com/ibm/fp-go/monoid" + M "github.com/IBM/fp-go/monoid" ) // Monoid is the monoid implementing string concatenation diff --git a/string/monoid_test.go b/string/monoid_test.go index 380eb96..b037ca7 100644 --- a/string/monoid_test.go +++ b/string/monoid_test.go @@ -3,7 +3,7 @@ package string import ( "testing" - M "github.com/ibm/fp-go/monoid/testing" + M "github.com/IBM/fp-go/monoid/testing" ) func TestMonoid(t *testing.T) { diff --git a/string/semigroup.go b/string/semigroup.go index cbbc60c..ffb8b63 100644 --- a/string/semigroup.go +++ b/string/semigroup.go @@ -3,7 +3,7 @@ package string import ( "fmt" - S "github.com/ibm/fp-go/semigroup" + S "github.com/IBM/fp-go/semigroup" ) func concat(left string, right string) string { diff --git a/string/string.go b/string/string.go index 683e434..6e9429d 100644 --- a/string/string.go +++ b/string/string.go @@ -3,8 +3,8 @@ package string import ( "strings" - F "github.com/ibm/fp-go/function" - O "github.com/ibm/fp-go/ord" + F "github.com/IBM/fp-go/function" + O "github.com/IBM/fp-go/ord" ) var ( diff --git a/tuple/gen.go b/tuple/gen.go index 8c6a95e..4a7d9d7 100644 --- a/tuple/gen.go +++ b/tuple/gen.go @@ -5,8 +5,8 @@ package tuple import ( - M "github.com/ibm/fp-go/monoid" - O "github.com/ibm/fp-go/ord" + M "github.com/IBM/fp-go/monoid" + O "github.com/IBM/fp-go/ord" ) // Tuple1 is a struct that carries 1 independently typed values