MCPcopy Create free account

hub / github.com/MedUnes/go-kata / functions

Functions16 in github.com/MedUnes/go-kata

↓ 2 callersMethodError
()
04-errors-semantics/20-nil-interface-gotcha/myerror.go:11
↓ 1 callersMethodAggregate
(ctx context.Context, id int)
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator.go:53
↓ 1 callersMethodGet
(ctx context.Context, id int)
01-context-cancellation-concurrency/01-concurrent-aggregator/profile/profile.go:13
↓ 1 callersMethodGetAll
(ctx context.Context, userId int)
01-context-cancellation-concurrency/01-concurrent-aggregator/order/order.go:12
↓ 1 callersFunctionNewUserAggregator
(os order.Service, ps profile.Service, opts ...Option)
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator.go:36
↓ 1 callersFunctionWithLogger
(l *slog.Logger)
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator.go:17
↓ 1 callersFunctionWithTimeout
(timeout time.Duration)
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator.go:23
↓ 1 callersFunctionWrapError
Wraps error for errors.As demonstration
04-errors-semantics/20-nil-interface-gotcha/myerror.go:36
FunctionBuggyDoThing
BuggyDoThing returns a *MyError(nil) as error (typed nil pitfall)
04-errors-semantics/20-nil-interface-gotcha/myerror.go:19
FunctionFixedDoThing
FixedDoThing returns a true nil error when no error
04-errors-semantics/20-nil-interface-gotcha/myerror.go:28
MethodGet
(ctx context.Context, id int)
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator_test.go:28
MethodGetAll
(ctx context.Context, userId int)
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator_test.go:46
FunctionTestAggregate
(t *testing.T)
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator_test.go:67
FunctionTestDoThingMatrix
(t *testing.T)
04-errors-semantics/20-nil-interface-gotcha/myerror_test.go:9
FunctionTestErrorMethodOutput
(t *testing.T)
04-errors-semantics/20-nil-interface-gotcha/myerror_test.go:101
FunctionTestErrorsAsExtractionMatrix
(t *testing.T)
04-errors-semantics/20-nil-interface-gotcha/myerror_test.go:65