MCPcopy Create free account

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

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

↓ 62 callersMethodGet
(key string)
Chapter04/02_design_patterns/01_singleton/02_strict/example.go:21
↓ 58 callersMethodAdd
(ctx context.Context, user NewUser, defaultTimeZone string)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users.go:52
↓ 54 callersMethodSet
(key string, value interface{})
Chapter01/04_data_races/02_partitioned_map/partitioned_map.go:42
↓ 45 callersMethodUnlock
()
Chapter08/04_struct_tricks/03_nocopy/example_test.go:13
↓ 44 callersMethodLock
()
Chapter08/04_struct_tricks/03_nocopy/example_test.go:11
↓ 40 callersMethodRun
(ctx context.Context, dir string)
Chapter09/02_call_apps/internal/ftests/ftests.go:21
↓ 35 callersMethodError
(message string, args ...interface{})
Chapter04/02_design_patterns/04_adapter/01_simple/example.go:8
↓ 22 callersMethodDo
()
Chapter06/06_test_resilience/example.go:25
↓ 19 callersMethodParse
Parse attempts to parse the provide file into this manager
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager.go:64
↓ 18 callersMethodError
(message string, args ...interface{})
Chapter06/04_mocks_stubs_recorders/04_test_recorders/example_test.go:11
↓ 18 callersMethodPrint
Print will output the supplied user either always or only when in error (depends on settings)
Chapter09/01_api_integrations/examples_apps/pd-user-check/internal/printer/printer.go:17
↓ 9 callersFunctionNew
(cfg Config, logger *zap.Logger)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/pd/api.go:17
↓ 9 callersFunctionNew
(cfg Config, logger *zap.Logger)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams.go:26
↓ 8 callersMethodCreate
Attempts to create the supplied user
Chapter04/01_software_design_principles/06_singles/03_abstraction/02_after/user_model.go:8
↓ 8 callersMethodDebug
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams.go:190
↓ 8 callersFunctionNew
(cfg Config, logger *zap.Logger)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:27
↓ 8 callersMethodPut
(key, value string)
Chapter04/02_design_patterns/01_singleton/02_strict/example.go:22
↓ 7 callersMethodEncode
()
Chapter04/01_software_design_principles/03_delegation/04_optional_delegation/example.go:22
↓ 7 callersFunctionNew
(cfg Config, logger *zap.Logger)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:22
↓ 7 callersMethodStart
()
Chapter05/01_clarity/13_panic/02_main/internal/server/server.go:15
↓ 7 callersMethodString
()
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/pduty/get_schedule.go:24
↓ 7 callersMethodUpdate
(u *User)
Chapter06/04_mocks_stubs_recorders/03_quick_mocks/example_test.go:5
↓ 6 callersMethodGetByName
(ctx context.Context, name string)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams.go:58
↓ 6 callersMethodPost
(ctx context.Context, uri string, reqDTO, respDTO interface{})
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/pd/api.go:99
↓ 6 callersMethodString
()
Chapter03/05_patterns/05_data/fixed.pb.go:36
↓ 5 callersMethodAdd
(ctx context.Context, name, description string)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams.go:107
↓ 5 callersMethodHeader
(string)
Chapter04/02_design_patterns/02_factory_method/02_example/example.go:14
↓ 5 callersFunctionNew
(cfg Config, logger *zap.Logger)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users.go:17
↓ 5 callersMethodReset
()
Chapter03/05_patterns/05_data/fixed.pb.go:35
↓ 4 callersMethodCharge
(ctx context.Context, customerName string, amount int64)
Chapter06/05_test_ux/03_reduce_duplication/02_mocks/example.go:71
↓ 4 callersMethodGet
()
Chapter05/01_clarity/09_avoid_foreign_idioms/02_singleton_v2/example.go:8
↓ 4 callersMethodGetResponderIDs
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:222
↓ 4 callersFunctionNew
(cfg Config, logger *zap.Logger)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/services/services.go:22
↓ 4 callersMethodProcess
(order Order)
Chapter06/01_what_when_why_how/04_what/example.go:9
↓ 4 callersMethodSendReceipt
(ctx context.Context, customerEmail string, amount int64, receiptNo string)
Chapter06/05_test_ux/03_reduce_duplication/02_mocks/example.go:76
↓ 4 callersMethodString
()
Chapter09/03_code_generation/02_stub_generator/03_generator_v6/parser.go:187
↓ 4 callersMethodString
()
Chapter09/03_code_generation/02_stub_generator/03_generator_v5/parser.go:187
↓ 4 callersMethodString
()
Chapter09/03_code_generation/02_stub_generator/03_generator_v7/parser.go:187
↓ 4 callersMethodString
()
Chapter09/03_code_generation/02_stub_generator/03_generator_v1/parser.go:186
↓ 4 callersMethodString
()
Chapter09/03_code_generation/02_stub_generator/03_generator_v8/parser.go:187
↓ 4 callersMethodString
()
Chapter09/03_code_generation/02_stub_generator/03_generator_v4/parser.go:187
↓ 4 callersMethodString
()
Chapter09/03_code_generation/02_stub_generator/03_generator_v2/parser.go:187
↓ 4 callersMethodString
()
Chapter09/03_code_generation/02_stub_generator/03_generator_v3/parser.go:187
↓ 4 callersMethodString
()
Chapter09/03_code_generation/02_stub_generator/01_go_ast/simple_ast.go:183
↓ 4 callersFunctiongetNameFromIdent
(ident *ast.Ident)
Chapter09/03_code_generation/02_stub_generator/03_generator_v6/parser.go:124
↓ 4 callersFunctiongetNameFromIdent
(ident *ast.Ident)
Chapter09/03_code_generation/02_stub_generator/03_generator_v5/parser.go:124
↓ 4 callersFunctiongetNameFromIdent
(ident *ast.Ident)
Chapter09/03_code_generation/02_stub_generator/03_generator_v7/parser.go:124
↓ 4 callersFunctiongetNameFromIdent
(ident *ast.Ident)
Chapter09/03_code_generation/02_stub_generator/03_generator_v1/parser.go:123
↓ 4 callersFunctiongetNameFromIdent
(ident *ast.Ident)
Chapter09/03_code_generation/02_stub_generator/03_generator_v8/parser.go:124
↓ 4 callersFunctiongetNameFromIdent
(ident *ast.Ident)
Chapter09/03_code_generation/02_stub_generator/03_generator_v4/parser.go:124
↓ 4 callersFunctiongetNameFromIdent
(ident *ast.Ident)
Chapter09/03_code_generation/02_stub_generator/03_generator_v2/parser.go:124
↓ 4 callersFunctiongetNameFromIdent
(ident *ast.Ident)
Chapter09/03_code_generation/02_stub_generator/03_generator_v3/parser.go:124
↓ 4 callersFunctiongetTestVarFromEnv
(t *testing.T, envVar string)
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/pduty/shared_test.go:8
↓ 4 callersFunctiontrackGC
()
Chapter03/05_patterns/10_maps/example_gc_test.go:106
↓ 3 callersMethodAdd
(ctx context.Context, schedule ReqSchedule, defaultTimeZone string)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:79
↓ 3 callersMethodAddIfDifferent
(in string)
Chapter08/04_struct_tricks/01_empty/02_map/01_selective_add/01_slice_only/example_test.go:13
↓ 3 callersMethodAddIfDifferent
(in string)
Chapter08/04_struct_tricks/01_empty/02_map/01_selective_add/02_slice_map/example_test.go:14
↓ 3 callersMethodAddListener
(in chan int64)
Chapter02/05_patterns/04_event_listener/event_listener.go:7
↓ 3 callersMethodAuthToken
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams.go:192
↓ 3 callersMethodGetByEmail
(ctx context.Context, email string)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users.go:32
↓ 3 callersFunctionLoad
()
Chapter02/05_patterns/01_copy_on_write/copy_on_write.go:17
↓ 3 callersFunctionNewAccount
()
Chapter01/03_concurrency_issues/04_detect_fix_avoid/05_serialize_access/02_channel/bank.go:3
↓ 3 callersFunctionNewAccount
()
Chapter01/03_concurrency_issues/04_detect_fix_avoid/05_serialize_access/01_mutex/bank.go:7
↓ 3 callersMethodPutDown
()
Chapter01/03_concurrency_issues/03_livelock/livelock.go:86
↓ 3 callersMethodSave
(*City)
Chapter04/01_software_design_principles/07_interface_segregation/01_fat_interface/example.go:8
↓ 3 callersFunctionbenchToString
(b *testing.B, total int)
Chapter03/04_benchmarking/02_good/sample_test.go:19
↓ 3 callersMethodbuildURI
(uri string, params url.Values)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/pd/api.go:135
↓ 3 callersMethodcheckForConflict
(shift *pduty.ScheduleEntry, calendar *gcal.Calendar)
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/conflict/checker.go:44
↓ 3 callersFunctiondoSomething
(val int)
Chapter03/03_pprof/04_mutex_profiling/02_defer/main.go:37
↓ 3 callersFunctiondoSomethingElse
()
Chapter03/03_pprof/04_mutex_profiling/02_defer/main.go:41
↓ 3 callersFunctiongenerateReceiptFile
(filename string)
Chapter06/07_patterns_tricks/03_test_data/example_test.go:68
↓ 3 callersFunctiongetNameFromIdent
(ident *ast.Ident)
Chapter09/03_code_generation/02_stub_generator/01_go_ast/simple_ast.go:121
↓ 3 callersFunctionnewAction
(amount int)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/05_serialize_access/02_channel/bank.go:49
↓ 3 callersFunctionprocessEvent
(event Event)
Chapter02/02_channels/02_read_from_closed/03_read_all.go:34
↓ 2 callersMethodAddMember
(ctx context.Context, teamID string, user User)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams.go:125
↓ 2 callersMethodBalance
()
Chapter01/03_concurrency_issues/04_detect_fix_avoid/05_serialize_access/02_channel/bank.go:32
↓ 2 callersMethodBalance
()
Chapter01/03_concurrency_issues/04_detect_fix_avoid/05_serialize_access/01_mutex/bank.go:36
↓ 2 callersMethodDeposit
(amount int)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/05_serialize_access/02_channel/bank.go:26
↓ 2 callersMethodDeposit
(amount int)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/05_serialize_access/01_mutex/bank.go:29
↓ 2 callersMethodDo
()
Chapter06/07_patterns_tricks/07_tests_complete/04_give_ups/example_test.go:42
↓ 2 callersFunctionDoSomething
()
Chapter06/07_patterns_tricks/08_parallel_benchmarks/example_test.go:21
↓ 2 callersFunctionDoSomething
(ctx context.Context, in string)
Chapter06/07_patterns_tricks/07_tests_complete/03_context_timeout/example_test.go:24
↓ 2 callersMethodEat
(wg *sync.WaitGroup, chopsticks ...*chopstick)
Chapter01/03_concurrency_issues/01_deadlock/01_mutexes/mutexes.go:12
↓ 2 callersMethodEat
(ctx context.Context, wg *sync.WaitGroup, chopstick1, chopstick2 *chopstick)
Chapter01/03_concurrency_issues/03_livelock/livelock.go:16
↓ 2 callersMethodEncode
()
Chapter05/01_clarity/09_avoid_foreign_idioms/01_singleton_v1/example.go:11
↓ 2 callersMethodFilename
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager.go:337
↓ 2 callersMethodFindSwap
FindSwap attempts to find a swap for the supplied conflict
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/conflict/swap.go:18
↓ 2 callersMethodFly
()
Chapter04/01_software_design_principles/04_composition_over_inheritance/01_composition/example.go:5
↓ 2 callersMethodFly
()
Chapter04/01_software_design_principles/04_composition_over_inheritance/01_composition/example.go:13
↓ 2 callersMethodFly
()
Chapter04/01_software_design_principles/04_composition_over_inheritance/01_composition/example.go:25
↓ 2 callersMethodGet
(key string)
Chapter01/04_data_races/02_partitioned_map/partitioned_map.go:32
↓ 2 callersMethodGetAll
()
Chapter01/05_sync_atomic/03_compare_and_swap/thread_safe_slice.go:28
↓ 2 callersFunctionGetCache
()
Chapter04/02_design_patterns/01_singleton/01_simple/example.go:13
↓ 2 callersMethodGetCalendars
GetCalendars returns the calendars for the emails (map values) provided
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/gcal/gcal.go:32
↓ 2 callersMethodGetDeptHeadsIDs
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:187
↓ 2 callersMethodGetDescription
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:221
↓ 2 callersMethodGetLeadIDs
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:186
↓ 2 callersMethodGetLeadIDs
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:223
↓ 2 callersMethodGetSchedule
GetSchedule will return the schedule for the supplied id
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/pduty/get_schedule.go:38
↓ 2 callersMethodGetTeamID
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:224
next →1–100 of 1,301, ranked by callers