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
↓ 2 callers
Method
GetTeamName
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:220
↓ 2 callers
Method
GetUsers
GetUsers will returns the mapping between PD user id and email
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/pduty/get_user.go:15
↓ 2 callers
Method
GetUsers
GetUsers will returns the mapping between PD user id and email
Chapter09/01_api_integrations/examples_apps/pd-user-check/internal/pduty/get_users.go:27
↓ 2 callers
Method
IsDone
()
Chapter06/07_patterns_tricks/07_tests_complete/04_give_ups/example_test.go:46
↓ 2 callers
Method
LoadAll
()
Chapter02/01_go_routines/02_unpredictable/03_without_goroutine/without_goroutine.go:23
↓ 2 callers
Function
Multiply
(a, b int)
Chapter08/01_functional_programming/04_currying/01_normal/example.go:3
↓ 2 callers
Function
Multiply
(a int)
Chapter08/01_functional_programming/04_currying/02_function_currying/example.go:3
↓ 2 callers
Function
NewChopstick
()
Chapter01/03_concurrency_issues/01_deadlock/01_mutexes/mutexes.go:33
↓ 2 callers
Function
NewChopstick
()
Chapter01/03_concurrency_issues/03_livelock/livelock.go:72
↓ 2 callers
Function
NewPerson
(name string, age int, rightHanded bool)
Chapter06/05_test_ux/02_readability/02_magic_constants/example_test.go:25
↓ 2 callers
Method
Put
(object *myObject)
Chapter05/01_clarity/09_avoid_foreign_idioms/02_singleton_v2/example.go:9
↓ 2 callers
Method
Release
(conn net.Conn)
Chapter02/05_patterns/07_pool/pool.go:60
↓ 2 callers
Function
Store
(cfg *Config)
Chapter02/05_patterns/01_copy_on_write/copy_on_write.go:21
↓ 2 callers
Method
SubmitTask
(in Task)
Chapter02/05_patterns/03_reply_channel/03_reply_channel.go:26
↓ 2 callers
Method
Sync
Sync calls all of the Sync Methods in the correct order
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager.go:98
↓ 2 callers
Method
Transfer
(amount int, destination *Account)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/05_serialize_access/02_channel/bank.go:17
↓ 2 callers
Method
Transfer
(amount int, destination *Account)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/05_serialize_access/01_mutex/bank.go:18
↓ 2 callers
Method
WaitForMessage
(data chan *Message)
Chapter06/08_test_induced_damage/01_parameters/02_after/example.go:20
↓ 2 callers
Method
WaitForMessage
(data chan *Message)
Chapter06/08_test_induced_damage/01_parameters/01_before/example.go:12
↓ 2 callers
Function
add
(i int, i2 int)
Chapter03/04_benchmarking/04_optimization/sample_test.go:35
↓ 2 callers
Function
addDeptHeads
(policy NewPolicy, reqDTO *addRequest)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:162
↓ 2 callers
Function
addLeads
(policy NewPolicy, reqDTO *addRequest)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:143
↓ 2 callers
Method
buildAddPayload
(service NewService, team NewTeam)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/services/services.go:87
↓ 2 callers
Function
buildAddRequest
(policy NewPolicy)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:115
↓ 2 callers
Method
buildListOfChangedPackages
(changeList []byte)
Chapter09/02_call_apps/internal/ftests/ftests.go:65
↓ 2 callers
Function
connection
(name string, serverStatus *sync.Cond, wg *sync.WaitGroup)
Chapter01/06_sync/06_cond/cond.go:47
↓ 2 callers
Method
count
this function assumes the lock is already held
Chapter01/06_sync/04_mutex/02_reentrant/reentrant.go:33
↓ 2 callers
Function
do
(ctx context.Context)
Chapter06/07_patterns_tricks/02_tests_with_context/example_test.go:26
↓ 2 callers
Function
do
()
Chapter05/02_consistency/01_style/03_naming.go:17
↓ 2 callers
Function
doCalculation
(in map[string]string)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/02_separate_logic/01_first.go:28
↓ 2 callers
Function
doClose
()
Chapter02/05_patterns/03_reply_channel/01_reply_channel.go:43
↓ 2 callers
Function
doCreateUser
(req *userCreationRequest)
Chapter05/01_clarity/03_whitespace/05_spaced_out_errors.go:3
↓ 2 callers
Function
doSomething
(input string)
Chapter05/02_consistency/01_style/01_test.go:25
↓ 2 callers
Function
doSomething
()
Chapter02/01_go_routines/03_clean_up/01_infinite_goroutine.go:11
↓ 2 callers
Function
doTask
()
Chapter05/02_consistency/01_style/04_error_style.go:18
↓ 2 callers
Function
doWorkFuture
(in int64)
Chapter08/03_futures/02_channel_based/example_test.go:23
↓ 2 callers
Function
doWorkFuture
(in int64)
Chapter08/03_futures/01_function_based/example_test.go:24
↓ 2 callers
Method
filterUnwantedPackages
(pkgs []string)
Chapter09/02_call_apps/internal/ftests/ftests.go:94
↓ 2 callers
Function
forEach
(in []string, operation func(string) string)
Chapter08/01_functional_programming/02_higher_order/example.go:7
↓ 2 callers
Function
forEach
(in []string, operation func(string) string)
Chapter08/01_functional_programming/03_recursion/example.go:7
↓ 2 callers
Method
generateInsertSQL
build a select query from the struct tags
Chapter03/05_patterns/03_once/example.go:37
↓ 2 callers
Method
getCalendar
will return the calendar for the supplied email address (taken from API example)
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/gcal/gcal.go:63
↓ 2 callers
Method
getChanges
(ctx context.Context, dir string)
Chapter09/02_call_apps/internal/ftests/ftests.go:47
↓ 2 callers
Method
getPartition
(key string)
Chapter01/04_data_races/02_partitioned_map/partitioned_map.go:51
↓ 2 callers
Function
getTestVarFromEnv
(t *testing.T, envVar string)
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/gcal/gcal_test.go:33
↓ 2 callers
Method
getTime
(dateTime string, date string, location *time.Location)
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/gcal/gcal.go:111
↓ 2 callers
Function
isAlive
(url string, responseCh chan bool)
Chapter02/05_patterns/05_fastest_responder/fastest_responder.go:24
↓ 2 callers
Function
isEmail
(in string)
Chapter03/05_patterns/15_cheap/example_test.go:36
↓ 2 callers
Function
isEmailFastFail
(in string)
Chapter03/05_patterns/15_cheap/example_test.go:56
↓ 2 callers
Method
isShutdown
()
Chapter01/02_concurrency_model/03_csp_usability/01_cache_channels.go:57
↓ 2 callers
Function
newPlayer
(action string, table chan *ball)
Chapter01/03_concurrency_issues/01_deadlock/02_channels/channels.go:22
↓ 2 callers
Method
onTick
(ts int64)
Chapter02/05_patterns/04_event_listener/event_listener.go:11
↓ 2 callers
Function
output
(wg *sync.WaitGroup, value int, result chan int)
Chapter01/01_concurrency_parallelism/01_intro/main.go:30
↓ 2 callers
Method
outputLine
(logger io.Writer, user *User)
Chapter09/01_api_integrations/examples_apps/pd-user-check/internal/printer/printer.go:30
↓ 2 callers
Function
parseFieldList
(fieldList *ast.FieldList)
Chapter09/03_code_generation/02_stub_generator/03_generator_v6/parser.go:79
↓ 2 callers
Function
parseFieldList
(fieldList *ast.FieldList)
Chapter09/03_code_generation/02_stub_generator/03_generator_v5/parser.go:79
↓ 2 callers
Function
parseFieldList
(fieldList *ast.FieldList)
Chapter09/03_code_generation/02_stub_generator/03_generator_v7/parser.go:79
↓ 2 callers
Function
parseFieldList
(fieldList *ast.FieldList)
Chapter09/03_code_generation/02_stub_generator/03_generator_v1/parser.go:79
↓ 2 callers
Function
parseFieldList
(fieldList *ast.FieldList)
Chapter09/03_code_generation/02_stub_generator/03_generator_v8/parser.go:79
↓ 2 callers
Function
parseFieldList
(fieldList *ast.FieldList)
Chapter09/03_code_generation/02_stub_generator/03_generator_v4/parser.go:79
↓ 2 callers
Function
parseFieldList
(fieldList *ast.FieldList)
Chapter09/03_code_generation/02_stub_generator/03_generator_v2/parser.go:79
↓ 2 callers
Function
parseFieldList
(fieldList *ast.FieldList)
Chapter09/03_code_generation/02_stub_generator/03_generator_v3/parser.go:79
↓ 2 callers
Function
parseFieldList
(fieldList *ast.FieldList)
Chapter09/03_code_generation/02_stub_generator/01_go_ast/simple_ast.go:76
↓ 2 callers
Method
parseResponse
(resp *http.Response, respDTO interface{})
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/pd/api.go:145
↓ 2 callers
Method
parseSource
(filename string)
Chapter09/03_code_generation/02_stub_generator/03_generator_v6/parser.go:10
↓ 2 callers
Method
parseSource
(filename string)
Chapter09/03_code_generation/02_stub_generator/03_generator_v5/parser.go:10
↓ 2 callers
Method
parseSource
(filename string)
Chapter09/03_code_generation/02_stub_generator/03_generator_v7/parser.go:10
↓ 2 callers
Method
parseSource
(filename string)
Chapter09/03_code_generation/02_stub_generator/03_generator_v1/parser.go:10
↓ 2 callers
Method
parseSource
(filename string)
Chapter09/03_code_generation/02_stub_generator/03_generator_v8/parser.go:10
↓ 2 callers
Method
parseSource
(filename string)
Chapter09/03_code_generation/02_stub_generator/03_generator_v4/parser.go:10
↓ 2 callers
Method
parseSource
(filename string)
Chapter09/03_code_generation/02_stub_generator/03_generator_v2/parser.go:10
↓ 2 callers
Method
parseSource
(filename string)
Chapter09/03_code_generation/02_stub_generator/03_generator_v3/parser.go:10
↓ 2 callers
Function
performShutdown
(signal chan struct{})
Chapter05/02_consistency/01_style/02_channels.go:15
↓ 2 callers
Method
pickup
(chopstick *chopstick)
Chapter01/03_concurrency_issues/03_livelock/livelock.go:60
↓ 2 callers
Function
processRequest
(_ request)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/08_indeterminate_select/01_blocking_case.go:43
↓ 2 callers
Function
processUpdate
(_ data)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/08_indeterminate_select/01_blocking_case.go:39
↓ 2 callers
Method
runTests
(ctx context.Context, baseDir string, pkgs []string)
Chapter09/02_call_apps/internal/ftests/ftests.go:132
↓ 2 callers
Method
syncTeamMembers
(ctx context.Context, team *Team)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager.go:200
↓ 2 callers
Method
timeEqual
compare the hour and minute only
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/conflict/swap.go:63
↓ 2 callers
Method
upsertService
(ctx context.Context, service *Service, team *Team)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager.go:308
↓ 2 callers
Function
usePooledAccount
()
Chapter01/06_sync/05_pool/dirty.go:13
↓ 2 callers
Function
usePooledAccountFixed
()
Chapter01/06_sync/05_pool/fixed.go:3
↓ 2 callers
Function
useResult
(in string)
Chapter02/03_select/02_read_from_nil/02_extended_example.go:29
↓ 1 callers
Method
Add
(ctx context.Context, policy NewPolicy)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:74
↓ 1 callers
Method
Add
(ctx context.Context, service NewService, team NewTeam)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/services/services.go:74
↓ 1 callers
Method
Add
(in []string)
Chapter08/04_struct_tricks/01_empty/02_map/02_double_loop/02_loop_map/example_test.go:27
↓ 1 callers
Method
Add
(in []string)
Chapter08/04_struct_tricks/01_empty/02_map/02_double_loop/01_double_loop/example_test.go:27
↓ 1 callers
Method
BaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams.go:191
↓ 1 callers
Method
Bold
(string)
Chapter04/02_design_patterns/02_factory_method/02_example/example.go:15
↓ 1 callers
Method
Check
(user User)
Chapter05/02_consistency/08_constructor_params/01_private_constructors/01_original/example.go:41
↓ 1 callers
Method
Check
Check is the main entry point for this struct
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/conflict/checker.go:14
↓ 1 callers
Method
CheckGender
(isMale bool)
Chapter05/02_consistency/07_bool_arguments/01_as_input.go:19
↓ 1 callers
Function
CleanExample
(person Person)
Chapter03/01_when_to_optimize/functions.go:9
↓ 1 callers
Function
Close1
()
Chapter02/05_patterns/03_reply_channel/01_reply_channel.go:30
↓ 1 callers
Function
Close2
()
Chapter02/05_patterns/03_reply_channel/01_reply_channel.go:47
↓ 1 callers
Function
Close3
()
Chapter02/05_patterns/03_reply_channel/01_reply_channel.go:61
↓ 1 callers
Function
CloseA
(errorCh chan error)
Chapter02/05_patterns/03_reply_channel/02_reply_channel.go:21
↓ 1 callers
Function
CloseB
(errorCh chan error)
Chapter02/05_patterns/03_reply_channel/02_reply_channel.go:28
↓ 1 callers
Function
CloseC
(errorCh chan error)
Chapter02/05_patterns/03_reply_channel/02_reply_channel.go:36
↓ 1 callers
Method
Consume
(ordersCh chan *Order)
Chapter06/07_patterns_tricks/06_concurrent_code/03_latches/02_after/example.go:13
← previous
next →
101–200 of 1,301, ranked by callers