Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MedUnes/go-kata
/ functions
Functions
16 in github.com/MedUnes/go-kata
⨍
Functions
16
◇
Types & classes
13
↓ 2 callers
Method
Error
()
04-errors-semantics/20-nil-interface-gotcha/myerror.go:11
↓ 1 callers
Method
Aggregate
(ctx context.Context, id int)
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator.go:53
↓ 1 callers
Method
Get
(ctx context.Context, id int)
01-context-cancellation-concurrency/01-concurrent-aggregator/profile/profile.go:13
↓ 1 callers
Method
GetAll
(ctx context.Context, userId int)
01-context-cancellation-concurrency/01-concurrent-aggregator/order/order.go:12
↓ 1 callers
Function
NewUserAggregator
(os order.Service, ps profile.Service, opts ...Option)
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator.go:36
↓ 1 callers
Function
WithLogger
(l *slog.Logger)
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator.go:17
↓ 1 callers
Function
WithTimeout
(timeout time.Duration)
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator.go:23
↓ 1 callers
Function
WrapError
Wraps error for errors.As demonstration
04-errors-semantics/20-nil-interface-gotcha/myerror.go:36
Function
BuggyDoThing
BuggyDoThing returns a *MyError(nil) as error (typed nil pitfall)
04-errors-semantics/20-nil-interface-gotcha/myerror.go:19
Function
FixedDoThing
FixedDoThing returns a true nil error when no error
04-errors-semantics/20-nil-interface-gotcha/myerror.go:28
Method
Get
(ctx context.Context, id int)
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator_test.go:28
Method
GetAll
(ctx context.Context, userId int)
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator_test.go:46
Function
TestAggregate
(t *testing.T)
01-context-cancellation-concurrency/01-concurrent-aggregator/aggregator_test.go:67
Function
TestDoThingMatrix
(t *testing.T)
04-errors-semantics/20-nil-interface-gotcha/myerror_test.go:9
Function
TestErrorMethodOutput
(t *testing.T)
04-errors-semantics/20-nil-interface-gotcha/myerror_test.go:101
Function
TestErrorsAsExtractionMatrix
(t *testing.T)
04-errors-semantics/20-nil-interface-gotcha/myerror_test.go:65