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
↓ 1 callers
Function
readWithTimeout
(closure func() string, timeout time.Duration)
Chapter02/03_select/01_timeout/read_with_timeout.go:8
↓ 1 callers
Function
reader
(ctx context.Context)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/04_memory_for_lock_time/01_copy.go:23
↓ 1 callers
Function
receive
(wg *sync.WaitGroup, dataCh <-chan struct{})
Chapter02/06_execution_tracing/03_channel/main.go:44
↓ 1 callers
Function
recordUserLogin
(user *User)
Chapter04/01_software_design_principles/01_minimalist_modular/02_composability.go:7
↓ 1 callers
Function
recordUserLoginByID
(user IDer)
Chapter04/01_software_design_principles/01_minimalist_modular/02_composability.go:11
↓ 1 callers
Method
renderCity
(writer http.ResponseWriter, city *City)
Chapter04/01_software_design_principles/07_interface_segregation/01_fat_interface/example.go:39
↓ 1 callers
Method
renderCity
(writer http.ResponseWriter, city *City)
Chapter04/01_software_design_principles/07_interface_segregation/02_thin_interface/example.go:36
↓ 1 callers
Function
s
(o O, n int, ec chan<- error)
Chapter05/01_clarity/01_bad_example/01_bad_example.go:38
↓ 1 callers
Function
s
(order Order, receiptNo int)
Chapter05/01_clarity/10_comments/01_bad_names/example.go:34
↓ 1 callers
Function
saveToDB
(req *userCreationRequest)
Chapter05/01_clarity/03_whitespace/05_spaced_out_errors.go:24
↓ 1 callers
Method
saveToDB
save the supplied user to the database
Chapter04/01_software_design_principles/06_singles/02_responsibility/01_before/create_user_handler.go:49
↓ 1 callers
Function
saveToken
Saves a token to a file path.
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/gcal/gcal.go:189
↓ 1 callers
Function
selfishChecker
(ctx context.Context, wg *sync.WaitGroup, url string)
Chapter01/03_concurrency_issues/02_starvation/main.go:38
↓ 1 callers
Function
send
(wg *sync.WaitGroup, dataCh chan<- struct{})
Chapter02/06_execution_tracing/03_channel/main.go:36
↓ 1 callers
Function
sendReceipt
(order Order, receiptNo int, errorCh chan<- error)
Chapter05/01_clarity/01_bad_example/02_better.go:47
↓ 1 callers
Function
sendReceipt
(order Order, receiptNo int)
Chapter05/01_clarity/10_comments/02_fixed/example.go:30
↓ 1 callers
Function
sendReceipt
(order Order, receiptNo int, errorCh chan<- error)
Chapter01/01_concurrency_parallelism/02_parallelism_cost/02_concurrent/main.go:47
↓ 1 callers
Function
sendReceipt
(order Order, receiptNo int)
Chapter01/01_concurrency_parallelism/02_parallelism_cost/01_sequential/main.go:30
↓ 1 callers
Method
sendReceipt
(ctx context.Context, order Order, receiptNo string)
Chapter06/02_table_driven_tests/example.go:59
↓ 1 callers
Method
sendReceipt
(ctx context.Context, order Order, receiptNo string)
Chapter06/04_mocks_stubs_recorders/01_mocks/example.go:59
↓ 1 callers
Method
sendReceipt
(order Order, receiptNo int)
Chapter06/01_what_when_why_how/04_what/example.go:39
↓ 1 callers
Method
sendReceipt
(ctx context.Context, order Order, receiptNo string)
Chapter06/05_test_ux/01_predictability/example.go:59
↓ 1 callers
Method
sendReceipt
(ctx context.Context, order Order, receiptNo string)
Chapter06/05_test_ux/03_reduce_duplication/02_mocks/example.go:59
↓ 1 callers
Method
sendReceipt
(order Order, receiptNo string)
Chapter05/02_consistency/03_file_organization/example.go:30
↓ 1 callers
Function
sendToServer
(name string, index int)
Chapter01/06_sync/06_cond/cond.go:66
↓ 1 callers
Method
shutdown
()
Chapter01/02_concurrency_model/03_csp_usability/01_cache_channels.go:67
↓ 1 callers
Function
sign
$ go test -run=Bench. -bench=. -benchtime=10s ./Chapter03/05_patterns/02_unnecessary_conversion/ goos: darwin goarch: amd64 pkg: github.com/corsc/Beyo
Chapter03/05_patterns/02_unnecessary_conversion/example_test.go:15
↓ 1 callers
Function
signFixed
(msg []byte)
Chapter03/05_patterns/02_unnecessary_conversion/example_test.go:30
↓ 1 callers
Function
simpleParser
(filename string)
Chapter09/03_code_generation/02_stub_generator/01_go_ast/simple_ast.go:10
↓ 1 callers
Function
toString
(people []Person)
Chapter03/04_benchmarking/02_good/sample_test.go:44
↓ 1 callers
Function
toString
(people []Person)
Chapter03/04_benchmarking/03_efficient/sample_test.go:56
↓ 1 callers
Function
tokenFromFile
Retrieves a token from a local file.
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/gcal/gcal.go:177
↓ 1 callers
Function
trackRequest
(handler func(http.ResponseWriter, *http.Request))
Chapter08/02_fun_with_functions/02_patterns/02_middleware/02_middleware/example.go:23
↓ 1 callers
Method
unmarshalResults
(results *elastic.SearchResult)
Chapter06/07_patterns_tricks/05_fluent_api/02_second_iteration/example.go:37
↓ 1 callers
Method
unmarshalResults
(results *elastic.SearchResult)
Chapter06/07_patterns_tricks/05_fluent_api/01_first_iteration/example.go:32
↓ 1 callers
Function
update
(url string)
Chapter02/05_patterns/06_update_oldest/update_oldest.go:37
↓ 1 callers
Function
updateIDs
(reqDTO *addRequest, prevPolicy *EscalationPolicy)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:111
↓ 1 callers
Function
updateLayer
(scheduleToUpdate *Schedule, schedule ReqSchedule, defaultTimeZone string, location *time.Location)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:147
↓ 1 callers
Function
updateMembers
(schedule ReqSchedule, scheduleToUpdate *Schedule)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:174
↓ 1 callers
Function
updateTheData
(in map[int64]string)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/01_communicate_dont_share/01_mutex/mutex.go:84
↓ 1 callers
Function
updater
(ctx context.Context)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/04_memory_for_lock_time/01_copy.go:44
↓ 1 callers
Function
useCache
(cache Cache)
Chapter08/04_struct_tricks/03_nocopy/example_test.go:22
↓ 1 callers
Function
useResults
(rows *sql.Rows)
Chapter02/01_go_routines/03_clean_up/03_context.go:29
↓ 1 callers
Function
useTheData
(cacheCopy []string)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/04_memory_for_lock_time/01_copy.go:63
↓ 1 callers
Function
useTheData
(in map[int64]string)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/01_communicate_dont_share/02_channel/channel.go:76
↓ 1 callers
Function
useTheData
(in map[int64]string)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/01_communicate_dont_share/01_mutex/mutex.go:78
↓ 1 callers
Function
userDecision
()
Chapter05/01_clarity/04_naming/01_meaningful/02_function_names_test.go:18
↓ 1 callers
Function
v
(o O)
Chapter05/01_clarity/01_bad_example/01_bad_example.go:30
↓ 1 callers
Function
v
(order Order)
Chapter05/01_clarity/10_comments/01_bad_names/example.go:26
↓ 1 callers
Function
validate
(req *userCreationRequest)
Chapter05/01_clarity/03_whitespace/05_spaced_out_errors.go:19
↓ 1 callers
Method
validate
validate the supplied user is complete and correct
Chapter04/01_software_design_principles/06_singles/02_responsibility/01_before/create_user_handler.go:43
↓ 1 callers
Method
validate
validate the supplied user is complete and correct
Chapter04/01_software_design_principles/06_singles/03_abstraction/02_after/user_model.go:18
↓ 1 callers
Method
validate
(order Order)
Chapter06/02_table_driven_tests/example.go:39
↓ 1 callers
Method
validate
(order Order)
Chapter06/04_mocks_stubs_recorders/01_mocks/example.go:39
↓ 1 callers
Method
validate
(order Order)
Chapter06/01_what_when_why_how/04_what/example.go:23
↓ 1 callers
Method
validate
(order Order)
Chapter06/05_test_ux/01_predictability/example.go:39
↓ 1 callers
Method
validate
(order Order)
Chapter06/05_test_ux/03_reduce_duplication/02_mocks/example.go:39
↓ 1 callers
Method
validate
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager.go:80
↓ 1 callers
Method
validateAddresses
(to, from string)
Chapter05/02_consistency/06_params_and_return_values/03_grouping/03_by_type/example.go:23
↓ 1 callers
Function
validateOrder
(order Order)
Chapter05/01_clarity/01_bad_example/02_better.go:39
↓ 1 callers
Function
validateOrder
(order Order)
Chapter05/01_clarity/10_comments/02_fixed/example.go:22
↓ 1 callers
Function
validateOrder
(order Order)
Chapter01/01_concurrency_parallelism/02_parallelism_cost/02_concurrent/main.go:39
↓ 1 callers
Function
validateOrder
(order Order)
Chapter01/01_concurrency_parallelism/02_parallelism_cost/01_sequential/main.go:22
↓ 1 callers
Method
validateOrder
(order Order)
Chapter05/02_consistency/03_file_organization/example.go:20
↓ 1 callers
Function
validateUser
(user *user.User)
Chapter04/01_software_design_principles/05_accept_interface_return_struct/04_testability_improved/example.go:21
↓ 1 callers
Function
validateUser
(user *user.User)
Chapter04/01_software_design_principles/05_accept_interface_return_struct/03_testability/example.go:17
↓ 1 callers
Function
worker
(wg *sync.WaitGroup, semaphore chan struct{})
Chapter02/01_go_routines/05_long_vs_lots/01_lots/main.go:31
↓ 1 callers
Function
worker
(wg *sync.WaitGroup, total int)
Chapter02/01_go_routines/05_long_vs_lots/04_long/main.go:29
↓ 1 callers
Function
worker
(wg *sync.WaitGroup, total int)
Chapter02/01_go_routines/05_long_vs_lots/03_long/main.go:29
↓ 1 callers
Function
worker
(wg *sync.WaitGroup, semaphore chan struct{})
Chapter02/01_go_routines/05_long_vs_lots/02_lots/main.go:33
↓ 1 callers
Function
worker
(wg *sync.WaitGroup, semaphore chan struct{})
Chapter02/06_execution_tracing/02_lots_vs_long/01_lots/main.go:47
↓ 1 callers
Function
worker
(wg *sync.WaitGroup, total int)
Chapter02/06_execution_tracing/02_lots_vs_long/04_long/main.go:45
↓ 1 callers
Function
worker
(wg *sync.WaitGroup, total int)
Chapter02/06_execution_tracing/02_lots_vs_long/03_long/main.go:45
↓ 1 callers
Function
worker
(wg *sync.WaitGroup, semaphore chan struct{})
Chapter02/06_execution_tracing/02_lots_vs_long/02_lots/main.go:49
↓ 1 callers
Method
writeToFile
(data []byte, file *os.File)
Chapter08/02_fun_with_functions/02_patterns/01_abstract_methods/example.go:23
Method
AccessToken
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/cmd/main.go:87
Method
AddItem
(item Item)
Chapter05/01_clarity/04_naming/02_concise/02_method_receivers.go:7
Function
AgeOver20
(in <-chan *User)
Chapter08/02_fun_with_functions/02_patterns/05_function_chaining/example.go:31
Function
AsInputExample
()
Chapter05/02_consistency/07_bool_arguments/01_as_input.go:7
Function
AsReturnExample
()
Chapter05/02_consistency/07_bool_arguments/02_as_return.go:8
Method
AssertContains
(t *testing.T, contains interface{}, msgAndArgs ...interface{})
Chapter06/04_mocks_stubs_recorders/04_test_recorders/example_test.go:22
Function
AsyncResult
(ctx context.Context)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/08_indeterminate_select/02_async_result.go:8
Method
AuthToken
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager_test.go:67
Method
AuthToken
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager.go:339
Method
AuthToken
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users.go:127
Method
AuthToken
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users_test.go:166
Method
AuthToken
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/pd/api.go:164
Method
AuthToken
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/pd/api_get_test.go:112
Method
AuthToken
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations_test.go:301
Method
AuthToken
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:234
Method
AuthToken
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/services/services_test.go:224
Method
AuthToken
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/services/services.go:189
Method
AuthToken
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:273
Method
AuthToken
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules_test.go:309
Method
AuthToken
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/tests/e2e/shared_test.go:13
Method
AuthToken
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams_test.go:314
Method
AuthToken
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/cmd/main.go:75
Function
Authenticate
(username, password string)
Chapter05/03_predictability/03_encapsulation/01_leak_dependency/example.go:7
Method
BaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager_test.go:63
Method
BaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager.go:338
← previous
next →
501–600 of 1,301, ranked by callers