MCPcopy Create free account

hub / github.com/corsc/Beyond-Effective-Go / functions

Functions1,301 in github.com/corsc/Beyond-Effective-Go

↓ 1 callersMethodCount
()
Chapter01/06_sync/04_mutex/01_deadlock/deadlock.go:25
↓ 1 callersMethodDecorate
Decorate provides a mock function with given fields: receipt
Chapter06/04_mocks_stubs_recorders/01_mocks/mock_receipt_decorator_test.go:13
↓ 1 callersMethodDial
()
Chapter01/06_sync/03_once/once.go:13
↓ 1 callersMethodDo
()
Chapter06/06_test_resilience/example.go:9
↓ 1 callersMethodDo
(ctx context.Context, customerName string)
Chapter06/07_patterns_tricks/05_fluent_api/02_second_iteration/example.go:23
↓ 1 callersFunctionDoSomething
()
Chapter06/08_test_induced_damage/02_outputs/02_after/example.go:7
↓ 1 callersFunctionDoSomething
()
Chapter06/08_test_induced_damage/02_outputs/01_before/example.go:7
↓ 1 callersMethodDoWork
(result chan int)
Chapter06/07_patterns_tricks/06_concurrent_code/02_switch_outputs/example_test.go:30
↓ 1 callersMethodDoWork
()
Chapter06/07_patterns_tricks/06_concurrent_code/01_typical_mistake/example.go:23
↓ 1 callersMethodEquals
(in *User)
Chapter04/01_software_design_principles/03_delegation/02_delegation/example_test.go:32
↓ 1 callersFunctionExample
()
Chapter01/06_sync/02_channel_wait_group/channel_waitgroup.go:3
↓ 1 callersFunctionExample
()
Chapter01/06_sync/01_waitgroup/waitgroup.go:7
↓ 1 callersFunctionExample
()
Chapter02/01_go_routines/01_anonymous_closures/01_data_race.go:8
↓ 1 callersFunctionExampleV2
()
Chapter02/01_go_routines/01_anonymous_closures/02_data_race.go:8
↓ 1 callersFunctionExampleV3
()
Chapter02/01_go_routines/01_anonymous_closures/03_data_race.go:8
↓ 1 callersFunctionFanInExample
(stopCh chan struct{}, inputChA, inputChB chan int, outputCh chan int)
Chapter01/02_concurrency_model/02_select_data_flow/fan_in.go:3
↓ 1 callersFunctionFanOutExample
(inputCh chan int, outputChA, outputChB chan int)
Chapter01/02_concurrency_model/02_select_data_flow/fan_out.go:3
↓ 1 callersFunctionFastExample
(buffer *bytes.Buffer, person Person)
Chapter03/01_when_to_optimize/functions.go:13
↓ 1 callersMethodFollow
Subscribe/add to list of observers
Chapter04/02_design_patterns/03_observer/example.go:19
↓ 1 callersMethodGenerate
(filename, targetInterface string)
Chapter09/03_code_generation/02_stub_generator/03_generator_v6/generator.go:11
↓ 1 callersMethodGenerate
(filename, targetInterface string)
Chapter09/03_code_generation/02_stub_generator/03_generator_v5/generator.go:11
↓ 1 callersMethodGenerate
(filename, targetInterface string)
Chapter09/03_code_generation/02_stub_generator/03_generator_v7/generator.go:11
↓ 1 callersMethodGenerate
(filename, targetInterface string)
Chapter09/03_code_generation/02_stub_generator/03_generator_v1/generator.go:11
↓ 1 callersMethodGenerate
(filename, targetInterface string)
Chapter09/03_code_generation/02_stub_generator/03_generator_v8/generator.go:12
↓ 1 callersMethodGenerate
(filename, targetInterface string)
Chapter09/03_code_generation/02_stub_generator/03_generator_v4/generator.go:11
↓ 1 callersMethodGenerate
(filename, targetInterface string)
Chapter09/03_code_generation/02_stub_generator/03_generator_v2/generator.go:11
↓ 1 callersMethodGenerate
(filename, targetInterface string)
Chapter09/03_code_generation/02_stub_generator/03_generator_v3/generator.go:11
↓ 1 callersFunctionGenerateHash
(nano int64)
Chapter05/01_clarity/13_panic/03_logfatal/example_test.go:19
↓ 1 callersMethodGet
(key string)
Chapter01/02_concurrency_model/03_csp_usability/01_cache_channels.go:24
↓ 1 callersMethodGet
(ctx context.Context, policyID string)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:37
↓ 1 callersMethodGet
(ctx context.Context, scheduleID string)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:42
↓ 1 callersMethodGetByName
(ctx context.Context, name string)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:54
↓ 1 callersMethodGetByName
(ctx context.Context, name string)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/services/services.go:54
↓ 1 callersMethodGetByName
(ctx context.Context, name string)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:59
↓ 1 callersMethodGetDescription
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:183
↓ 1 callersMethodGetDescription
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/services/services.go:131
↓ 1 callersMethodGetEmail
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users.go:67
↓ 1 callersMethodGetEscalationPolicyID
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/services/services.go:136
↓ 1 callersMethodGetHostConfig
()
Chapter04/02_design_patterns/04_adapter/03_go_types/version2/config.go:9
↓ 1 callersMethodGetID
()
Chapter04/01_software_design_principles/01_minimalist_modular/02_composability.go:16
↓ 1 callersMethodGetMembers
(ctx context.Context, teamID string)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams.go:78
↓ 1 callersMethodGetName
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users.go:66
↓ 1 callersMethodGetName
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/services/services.go:130
↓ 1 callersMethodGetResult
()
Chapter06/07_patterns_tricks/06_concurrent_code/01_typical_mistake/example.go:27
↓ 1 callersMethodGetScheduleID
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:184
↓ 1 callersMethodGetTeamID
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:185
↓ 1 callersMethodGetTeamID
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/services/services.go:135
↓ 1 callersMethodGetTeamName
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:182
↓ 1 callersMethodGetTeamRole
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams.go:142
↓ 1 callersMethodGetTimeZone
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users.go:68
↓ 1 callersMethodGetUserID
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams.go:141
↓ 1 callersMethodGetUserRole
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users.go:69
↓ 1 callersMethodGetUsers
GetUsers will returns the mapping between PD user id and email
Chapter09/01_api_integrations/01_example/01_calling_the_api/calling_pagerduty.go:39
↓ 1 callersFunctionInternetIsAccessible
()
Chapter02/05_patterns/05_fastest_responder/fastest_responder.go:7
↓ 1 callersMethodIsHungry
()
Chapter01/03_concurrency_issues/03_livelock/livelock.go:56
↓ 1 callersFunctionLegacyFunction
(logger OldLogger)
Chapter04/02_design_patterns/04_adapter/01_simple/example.go:11
↓ 1 callersFunctionLoad
(filename string)
Chapter05/01_clarity/13_panic/02_main/internal/config/config.go:7
↓ 1 callersMethodLoad
(ID int)
Chapter04/01_software_design_principles/05_accept_interface_return_struct/05_implicit_interfaces/example.go:8
↓ 1 callersMethodLoadAll
()
Chapter02/01_go_routines/02_unpredictable/02_with_sync/with_sync.go:31
↓ 1 callersMethodLoadAll
()
Chapter02/01_go_routines/02_unpredictable/01_without_sync/without_sync.go:31
↓ 1 callersMethodLoadByID
(int)
Chapter04/01_software_design_principles/07_interface_segregation/01_fat_interface/example.go:10
↓ 1 callersMethodLoadByID
(int)
Chapter04/01_software_design_principles/07_interface_segregation/02_thin_interface/example.go:8
↓ 1 callersFunctionLoadByUsernamePassword
(username, password string)
Chapter05/03_predictability/03_encapsulation/01_leak_dependency/internal/storage/storage.go:7
↓ 1 callersFunctionMarshal
$ go test -run=Bench. -bench=. -benchmem -benchtime=10s ./Chapter03/05_patterns/06_allocations/ goos: darwin goarch: amd64 pkg: github.com/corsc/Beyon
Chapter03/05_patterns/06_allocations/example_test.go:17
↓ 1 callersFunctionMarshalFixed
(in []byte, user *User)
Chapter03/05_patterns/06_allocations/example_test.go:41
↓ 1 callersMethodMatch
(in []string)
Chapter08/04_struct_tricks/01_empty/02_map/02_double_loop/02_loop_map/example_test.go:14
↓ 1 callersMethodMatch
(in []string)
Chapter08/04_struct_tricks/01_empty/02_map/02_double_loop/01_double_loop/example_test.go:13
↓ 1 callersFunctionMultiplexingExample
(stopCh chan struct{}, inputChA, inputChB chan int, outputChC, outputChD chan int)
Chapter01/02_concurrency_model/02_select_data_flow/multiplexing.go:3
↓ 1 callersFunctionNew
(cfg Config)
Chapter05/01_clarity/13_panic/02_main/internal/server/server.go:7
↓ 1 callersFunctionNew
(cfg Config, logger *zap.Logger)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager.go:41
↓ 1 callersFunctionNewCacheUsingChannels
()
Chapter01/02_concurrency_model/03_csp_usability/01_cache_channels.go:3
↓ 1 callersFunctionNewDeck
NewDeck creates a deck of cards (NOTE: the cards are in predictable order)
Chapter03/03_pprof/02_memory_profiling/game/cards.go:30
↓ 1 callersFunctionNewDeck
NewDeck creates a deck of cards (NOTE: the cards are in predictable order)
Chapter03/03_pprof/01_cpu_profiling/game/cards.go:30
↓ 1 callersFunctionNewDocumentFormat
(format string)
Chapter04/02_design_patterns/02_factory_method/02_example/example.go:3
↓ 1 callersFunctionNewLoader
()
Chapter02/01_go_routines/02_unpredictable/02_with_sync/with_sync.go:11
↓ 1 callersFunctionNewLoader
()
Chapter02/01_go_routines/02_unpredictable/03_without_goroutine/without_goroutine.go:10
↓ 1 callersFunctionNewLoader
(dsn string)
Chapter02/01_go_routines/02_unpredictable/01_without_sync/without_sync.go:10
↓ 1 callersFunctionNewOrderManager
(bank Bank, sender ReceiptSender)
Chapter06/02_table_driven_tests/example.go:8
↓ 1 callersFunctionNewOrderManager
(bank Bank, sender ReceiptSender)
Chapter06/04_mocks_stubs_recorders/01_mocks/example.go:8
↓ 1 callersFunctionNewOrderManager
(bank Bank, sender ReceiptSender)
Chapter06/05_test_ux/01_predictability/example.go:8
↓ 1 callersFunctionNewOrderManager
(bank Bank, sender ReceiptSender)
Chapter06/05_test_ux/03_reduce_duplication/02_mocks/example.go:8
↓ 1 callersFunctionNewPartitionedMap
(partitions int)
Chapter01/04_data_races/02_partitioned_map/partitioned_map.go:8
↓ 1 callersFunctionNewSuperFan
()
Chapter04/02_design_patterns/03_observer/example.go:70
↓ 1 callersFunctionNewUserDAOInterface
()
Chapter04/01_software_design_principles/05_accept_interface_return_struct/05_implicit_interfaces/example.go:12
↓ 1 callersFunctionNewUserDAOStruct
()
Chapter04/01_software_design_principles/05_accept_interface_return_struct/05_implicit_interfaces/example.go:16
↓ 1 callersFunctionNewUsersAPI
(apiBaseURL string, apiKey string)
Chapter09/01_api_integrations/01_example/01_calling_the_api/calling_pagerduty.go:25
↓ 1 callersFunctionNewWorkers
(totalWorkers int)
Chapter02/05_patterns/03_reply_channel/03_reply_channel.go:7
↓ 1 callersMethodOutputHeader
OutputHeader outputs the header of the result table
Chapter09/01_api_integrations/examples_apps/pd-user-check/internal/printer/printer.go:35
↓ 1 callersMethodPickup
()
Chapter01/03_concurrency_issues/01_deadlock/01_mutexes/mutexes.go:43
↓ 1 callersMethodPickup
()
Chapter01/03_concurrency_issues/03_livelock/livelock.go:82
↓ 1 callersMethodProcess
(ctx context.Context, order Order)
Chapter06/02_table_driven_tests/example.go:20
↓ 1 callersMethodProcess
(ctx context.Context, order Order)
Chapter06/04_mocks_stubs_recorders/01_mocks/example.go:20
↓ 1 callersMethodProcess
(ctx context.Context, order Order)
Chapter06/05_test_ux/01_predictability/example.go:20
↓ 1 callersMethodProcess
(ctx context.Context, order Order)
Chapter06/05_test_ux/03_reduce_duplication/02_mocks/example.go:20
↓ 1 callersMethodPut
(value interface{})
Chapter01/05_sync_atomic/03_compare_and_swap/thread_safe_slice.go:14
↓ 1 callersMethodPutDown
()
Chapter01/03_concurrency_issues/01_deadlock/01_mutexes/mutexes.go:47
↓ 1 callersMethodRemoveListener
(in chan int64)
Chapter02/05_patterns/04_event_listener/event_listener.go:22
↓ 1 callersMethodSave
Save provides a mock function with given fields: _a0
Chapter04/01_software_design_principles/05_accept_interface_return_struct/04_testability_improved/mock_user_repository_test.go:16
↓ 1 callersMethodSave
(user *user.User)
Chapter04/01_software_design_principles/05_accept_interface_return_struct/04_testability_improved/example.go:18
↓ 1 callersMethodSave
(user *user.User)
Chapter04/01_software_design_principles/05_accept_interface_return_struct/03_testability/internal/repo/user_dao.go:14
← previousnext →201–300 of 1,301, ranked by callers