Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/corsc/Beyond-Effective-Go
/ functions
Functions
1,301 in github.com/corsc/Beyond-Effective-Go
⨍
Functions
1,301
◇
Types & classes
506
↓ 62 callers
Method
Get
(key string)
Chapter04/02_design_patterns/01_singleton/02_strict/example.go:21
↓ 58 callers
Method
Add
(ctx context.Context, user NewUser, defaultTimeZone string)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users.go:52
↓ 54 callers
Method
Set
(key string, value interface{})
Chapter01/04_data_races/02_partitioned_map/partitioned_map.go:42
↓ 45 callers
Method
Unlock
()
Chapter08/04_struct_tricks/03_nocopy/example_test.go:13
↓ 44 callers
Method
Lock
()
Chapter08/04_struct_tricks/03_nocopy/example_test.go:11
↓ 40 callers
Method
Run
(ctx context.Context, dir string)
Chapter09/02_call_apps/internal/ftests/ftests.go:21
↓ 35 callers
Method
Error
(message string, args ...interface{})
Chapter04/02_design_patterns/04_adapter/01_simple/example.go:8
↓ 22 callers
Method
Do
()
Chapter06/06_test_resilience/example.go:25
↓ 19 callers
Method
Parse
Parse attempts to parse the provide file into this manager
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager.go:64
↓ 18 callers
Method
Error
(message string, args ...interface{})
Chapter06/04_mocks_stubs_recorders/04_test_recorders/example_test.go:11
↓ 18 callers
Method
Print
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 callers
Function
New
(cfg Config, logger *zap.Logger)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/pd/api.go:17
↓ 9 callers
Function
New
(cfg Config, logger *zap.Logger)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams.go:26
↓ 8 callers
Method
Create
Attempts to create the supplied user
Chapter04/01_software_design_principles/06_singles/03_abstraction/02_after/user_model.go:8
↓ 8 callers
Method
Debug
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams.go:190
↓ 8 callers
Function
New
(cfg Config, logger *zap.Logger)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:27
↓ 8 callers
Method
Put
(key, value string)
Chapter04/02_design_patterns/01_singleton/02_strict/example.go:22
↓ 7 callers
Method
Encode
()
Chapter04/01_software_design_principles/03_delegation/04_optional_delegation/example.go:22
↓ 7 callers
Function
New
(cfg Config, logger *zap.Logger)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:22
↓ 7 callers
Method
Start
()
Chapter05/01_clarity/13_panic/02_main/internal/server/server.go:15
↓ 7 callers
Method
String
()
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/pduty/get_schedule.go:24
↓ 7 callers
Method
Update
(u *User)
Chapter06/04_mocks_stubs_recorders/03_quick_mocks/example_test.go:5
↓ 6 callers
Method
GetByName
(ctx context.Context, name string)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams.go:58
↓ 6 callers
Method
Post
(ctx context.Context, uri string, reqDTO, respDTO interface{})
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/pd/api.go:99
↓ 6 callers
Method
String
()
Chapter03/05_patterns/05_data/fixed.pb.go:36
↓ 5 callers
Method
Add
(ctx context.Context, name, description string)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams.go:107
↓ 5 callers
Method
Header
(string)
Chapter04/02_design_patterns/02_factory_method/02_example/example.go:14
↓ 5 callers
Function
New
(cfg Config, logger *zap.Logger)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users.go:17
↓ 5 callers
Method
Reset
()
Chapter03/05_patterns/05_data/fixed.pb.go:35
↓ 4 callers
Method
Charge
(ctx context.Context, customerName string, amount int64)
Chapter06/05_test_ux/03_reduce_duplication/02_mocks/example.go:71
↓ 4 callers
Method
Get
()
Chapter05/01_clarity/09_avoid_foreign_idioms/02_singleton_v2/example.go:8
↓ 4 callers
Method
GetResponderIDs
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:222
↓ 4 callers
Function
New
(cfg Config, logger *zap.Logger)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/services/services.go:22
↓ 4 callers
Method
Process
(order Order)
Chapter06/01_what_when_why_how/04_what/example.go:9
↓ 4 callers
Method
SendReceipt
(ctx context.Context, customerEmail string, amount int64, receiptNo string)
Chapter06/05_test_ux/03_reduce_duplication/02_mocks/example.go:76
↓ 4 callers
Method
String
()
Chapter09/03_code_generation/02_stub_generator/03_generator_v6/parser.go:187
↓ 4 callers
Method
String
()
Chapter09/03_code_generation/02_stub_generator/03_generator_v5/parser.go:187
↓ 4 callers
Method
String
()
Chapter09/03_code_generation/02_stub_generator/03_generator_v7/parser.go:187
↓ 4 callers
Method
String
()
Chapter09/03_code_generation/02_stub_generator/03_generator_v1/parser.go:186
↓ 4 callers
Method
String
()
Chapter09/03_code_generation/02_stub_generator/03_generator_v8/parser.go:187
↓ 4 callers
Method
String
()
Chapter09/03_code_generation/02_stub_generator/03_generator_v4/parser.go:187
↓ 4 callers
Method
String
()
Chapter09/03_code_generation/02_stub_generator/03_generator_v2/parser.go:187
↓ 4 callers
Method
String
()
Chapter09/03_code_generation/02_stub_generator/03_generator_v3/parser.go:187
↓ 4 callers
Method
String
()
Chapter09/03_code_generation/02_stub_generator/01_go_ast/simple_ast.go:183
↓ 4 callers
Function
getNameFromIdent
(ident *ast.Ident)
Chapter09/03_code_generation/02_stub_generator/03_generator_v6/parser.go:124
↓ 4 callers
Function
getNameFromIdent
(ident *ast.Ident)
Chapter09/03_code_generation/02_stub_generator/03_generator_v5/parser.go:124
↓ 4 callers
Function
getNameFromIdent
(ident *ast.Ident)
Chapter09/03_code_generation/02_stub_generator/03_generator_v7/parser.go:124
↓ 4 callers
Function
getNameFromIdent
(ident *ast.Ident)
Chapter09/03_code_generation/02_stub_generator/03_generator_v1/parser.go:123
↓ 4 callers
Function
getNameFromIdent
(ident *ast.Ident)
Chapter09/03_code_generation/02_stub_generator/03_generator_v8/parser.go:124
↓ 4 callers
Function
getNameFromIdent
(ident *ast.Ident)
Chapter09/03_code_generation/02_stub_generator/03_generator_v4/parser.go:124
↓ 4 callers
Function
getNameFromIdent
(ident *ast.Ident)
Chapter09/03_code_generation/02_stub_generator/03_generator_v2/parser.go:124
↓ 4 callers
Function
getNameFromIdent
(ident *ast.Ident)
Chapter09/03_code_generation/02_stub_generator/03_generator_v3/parser.go:124
↓ 4 callers
Function
getTestVarFromEnv
(t *testing.T, envVar string)
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/pduty/shared_test.go:8
↓ 4 callers
Function
trackGC
()
Chapter03/05_patterns/10_maps/example_gc_test.go:106
↓ 3 callers
Method
Add
(ctx context.Context, schedule ReqSchedule, defaultTimeZone string)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:79
↓ 3 callers
Method
AddIfDifferent
(in string)
Chapter08/04_struct_tricks/01_empty/02_map/01_selective_add/01_slice_only/example_test.go:13
↓ 3 callers
Method
AddIfDifferent
(in string)
Chapter08/04_struct_tricks/01_empty/02_map/01_selective_add/02_slice_map/example_test.go:14
↓ 3 callers
Method
AddListener
(in chan int64)
Chapter02/05_patterns/04_event_listener/event_listener.go:7
↓ 3 callers
Method
AuthToken
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams.go:192
↓ 3 callers
Method
GetByEmail
(ctx context.Context, email string)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users.go:32
↓ 3 callers
Function
Load
()
Chapter02/05_patterns/01_copy_on_write/copy_on_write.go:17
↓ 3 callers
Function
NewAccount
()
Chapter01/03_concurrency_issues/04_detect_fix_avoid/05_serialize_access/02_channel/bank.go:3
↓ 3 callers
Function
NewAccount
()
Chapter01/03_concurrency_issues/04_detect_fix_avoid/05_serialize_access/01_mutex/bank.go:7
↓ 3 callers
Method
PutDown
()
Chapter01/03_concurrency_issues/03_livelock/livelock.go:86
↓ 3 callers
Method
Save
(*City)
Chapter04/01_software_design_principles/07_interface_segregation/01_fat_interface/example.go:8
↓ 3 callers
Function
benchToString
(b *testing.B, total int)
Chapter03/04_benchmarking/02_good/sample_test.go:19
↓ 3 callers
Method
buildURI
(uri string, params url.Values)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/pd/api.go:135
↓ 3 callers
Method
checkForConflict
(shift *pduty.ScheduleEntry, calendar *gcal.Calendar)
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/conflict/checker.go:44
↓ 3 callers
Function
doSomething
(val int)
Chapter03/03_pprof/04_mutex_profiling/02_defer/main.go:37
↓ 3 callers
Function
doSomethingElse
()
Chapter03/03_pprof/04_mutex_profiling/02_defer/main.go:41
↓ 3 callers
Function
generateReceiptFile
(filename string)
Chapter06/07_patterns_tricks/03_test_data/example_test.go:68
↓ 3 callers
Function
getNameFromIdent
(ident *ast.Ident)
Chapter09/03_code_generation/02_stub_generator/01_go_ast/simple_ast.go:121
↓ 3 callers
Function
newAction
(amount int)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/05_serialize_access/02_channel/bank.go:49
↓ 3 callers
Function
processEvent
(event Event)
Chapter02/02_channels/02_read_from_closed/03_read_all.go:34
↓ 2 callers
Method
AddMember
(ctx context.Context, teamID string, user User)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams.go:125
↓ 2 callers
Method
Balance
()
Chapter01/03_concurrency_issues/04_detect_fix_avoid/05_serialize_access/02_channel/bank.go:32
↓ 2 callers
Method
Balance
()
Chapter01/03_concurrency_issues/04_detect_fix_avoid/05_serialize_access/01_mutex/bank.go:36
↓ 2 callers
Method
Deposit
(amount int)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/05_serialize_access/02_channel/bank.go:26
↓ 2 callers
Method
Deposit
(amount int)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/05_serialize_access/01_mutex/bank.go:29
↓ 2 callers
Method
Do
()
Chapter06/07_patterns_tricks/07_tests_complete/04_give_ups/example_test.go:42
↓ 2 callers
Function
DoSomething
()
Chapter06/07_patterns_tricks/08_parallel_benchmarks/example_test.go:21
↓ 2 callers
Function
DoSomething
(ctx context.Context, in string)
Chapter06/07_patterns_tricks/07_tests_complete/03_context_timeout/example_test.go:24
↓ 2 callers
Method
Eat
(wg *sync.WaitGroup, chopsticks ...*chopstick)
Chapter01/03_concurrency_issues/01_deadlock/01_mutexes/mutexes.go:12
↓ 2 callers
Method
Eat
(ctx context.Context, wg *sync.WaitGroup, chopstick1, chopstick2 *chopstick)
Chapter01/03_concurrency_issues/03_livelock/livelock.go:16
↓ 2 callers
Method
Encode
()
Chapter05/01_clarity/09_avoid_foreign_idioms/01_singleton_v1/example.go:11
↓ 2 callers
Method
Filename
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager.go:337
↓ 2 callers
Method
FindSwap
FindSwap attempts to find a swap for the supplied conflict
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/conflict/swap.go:18
↓ 2 callers
Method
Fly
()
Chapter04/01_software_design_principles/04_composition_over_inheritance/01_composition/example.go:5
↓ 2 callers
Method
Fly
()
Chapter04/01_software_design_principles/04_composition_over_inheritance/01_composition/example.go:13
↓ 2 callers
Method
Fly
()
Chapter04/01_software_design_principles/04_composition_over_inheritance/01_composition/example.go:25
↓ 2 callers
Method
Get
(key string)
Chapter01/04_data_races/02_partitioned_map/partitioned_map.go:32
↓ 2 callers
Method
GetAll
()
Chapter01/05_sync_atomic/03_compare_and_swap/thread_safe_slice.go:28
↓ 2 callers
Function
GetCache
()
Chapter04/02_design_patterns/01_singleton/01_simple/example.go:13
↓ 2 callers
Method
GetCalendars
GetCalendars returns the calendars for the emails (map values) provided
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/gcal/gcal.go:32
↓ 2 callers
Method
GetDeptHeadsIDs
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:187
↓ 2 callers
Method
GetDescription
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:221
↓ 2 callers
Method
GetLeadIDs
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:186
↓ 2 callers
Method
GetLeadIDs
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:223
↓ 2 callers
Method
GetSchedule
GetSchedule will return the schedule for the supplied id
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/pduty/get_schedule.go:38
↓ 2 callers
Method
GetTeamID
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:224
next →
1–100 of 1,301, ranked by callers