1
0
mirror of https://github.com/IBM/fp-go.git synced 2025-08-10 22:31:32 +02:00

doc: fix case

Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
Dr. Carsten Leue
2023-07-18 15:57:54 +02:00
parent 308fe48718
commit b25de3c7c3
287 changed files with 662 additions and 656 deletions

View File

@@ -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"
)

View File

@@ -1,7 +1,7 @@
package apply
import (
F "github.com/ibm/fp-go/function"
F "github.com/IBM/fp-go/function"
)
// HKTFGA = HKT<F, HKT<G, A>>

View File

@@ -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]

View File

@@ -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"
)

View File

@@ -1,7 +1,7 @@
package array
import (
F "github.com/ibm/fp-go/function"
F "github.com/IBM/fp-go/function"
)
/*

View File

@@ -1,7 +1,7 @@
package chain
import (
F "github.com/ibm/fp-go/function"
F "github.com/IBM/fp-go/function"
)
// HKTA=HKT[A]

View File

@@ -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"
)

View File

@@ -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<F, Either<E, A>>

View File

@@ -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`

View File

@@ -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) {

View File

@@ -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

View File

@@ -5,7 +5,7 @@ import (
"context"
"io"
E "github.com/ibm/fp-go/either"
E "github.com/IBM/fp-go/either"
)
type (

View File

@@ -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

View File

@@ -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 {

View File

@@ -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](

View File

@@ -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](

View File

@@ -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 {

View File

@@ -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]]

View File

@@ -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"
)

View File

@@ -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"
)

View File

@@ -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

View File

@@ -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