MCPcopy Create free account

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

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

↓ 1 callersFunctionextractParamType
(param ast.Expr)
Chapter09/03_code_generation/02_stub_generator/03_generator_v2/parser.go:106
↓ 1 callersFunctionextractParamType
(param ast.Expr)
Chapter09/03_code_generation/02_stub_generator/03_generator_v3/parser.go:106
↓ 1 callersFunctionextractParamType
(param ast.Expr)
Chapter09/03_code_generation/02_stub_generator/01_go_ast/simple_ast.go:103
↓ 1 callersMethodextractUser
extract user from HTTP request
Chapter04/01_software_design_principles/06_singles/02_responsibility/02_after/create_user_handler.go:37
↓ 1 callersMethodextractUser
extract user from HTTP request
Chapter04/01_software_design_principles/06_singles/02_responsibility/01_before/create_user_handler.go:37
↓ 1 callersMethodextractUser
extract user from HTTP request
Chapter04/01_software_design_principles/06_singles/03_abstraction/02_after/create_user_handler.go:30
↓ 1 callersMethodextractUser
extract user from HTTP request
Chapter04/01_software_design_principles/06_singles/03_abstraction/01_before/create_user_handler.go:37
↓ 1 callersMethodfetchAllUsers
(apiKey string, search string)
Chapter09/01_api_integrations/examples_apps/pd-user-check/internal/pduty/get_users.go:36
↓ 1 callersMethodfetchAllUsers
(ctx context.Context)
Chapter09/01_api_integrations/01_example/01_calling_the_api/calling_pagerduty.go:48
↓ 1 callersFunctionfindPerson
(people []*Person, name string)
Chapter03/05_patterns/08_find/example_test.go:35
↓ 1 callersFunctionfindPersonMap
(people []*Person, peopleMap map[string]int, name string)
Chapter03/05_patterns/08_find/example_test.go:68
↓ 1 callersFunctionfindSwaps
(periodStart time.Time, schedule *pduty.Schedule, conflicts []*pduty.ScheduleEntry, calendars map[string]*gcal
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/main.go:110
↓ 1 callersFunctionforE
(in []string, index int, operation func(string) string)
Chapter08/01_functional_programming/03_recursion/example.go:11
↓ 1 callersMethodgenerate
(thisInterface *Interface)
Chapter09/03_code_generation/02_stub_generator/03_generator_v6/generator.go:26
↓ 1 callersMethodgenerate
(thisInterface *Interface)
Chapter09/03_code_generation/02_stub_generator/03_generator_v5/generator.go:26
↓ 1 callersMethodgenerate
(thisInterface *Interface)
Chapter09/03_code_generation/02_stub_generator/03_generator_v7/generator.go:26
↓ 1 callersMethodgenerate
(thisInterface *Interface)
Chapter09/03_code_generation/02_stub_generator/03_generator_v1/generator.go:26
↓ 1 callersMethodgenerate
(thisInterface *Interface)
Chapter09/03_code_generation/02_stub_generator/03_generator_v8/generator.go:27
↓ 1 callersMethodgenerate
(thisInterface *Interface)
Chapter09/03_code_generation/02_stub_generator/03_generator_v4/generator.go:26
↓ 1 callersMethodgenerate
(thisInterface *Interface)
Chapter09/03_code_generation/02_stub_generator/03_generator_v2/generator.go:26
↓ 1 callersMethodgenerate
(thisInterface *Interface)
Chapter09/03_code_generation/02_stub_generator/03_generator_v3/generator.go:26
↓ 1 callersMethodgenerateInsertSQL
build a select query from the struct tags
Chapter03/05_patterns/04_once_again/example.go:32
↓ 1 callersMethodgenerateInsertSQLFixed
build a select query from the struct tags
Chapter03/05_patterns/04_once_again/example.go:59
↓ 1 callersFunctionget
()
Chapter05/01_clarity/04_naming/01_meaningful/02_function_names_test.go:14
↓ 1 callersMethodgetAPI
(credsFile, tokFile string)
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/gcal/gcal.go:129
↓ 1 callersFunctiongetClient
Retrieve a token, saves the token, then returns the generated client.
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/gcal/gcal.go:146
↓ 1 callersFunctiongetDir
()
Chapter09/02_call_apps/cmd/main.go:30
↓ 1 callersMethodgetGitBaseDir
(ctx context.Context, dir string)
Chapter09/02_call_apps/internal/ftests/ftests.go:114
↓ 1 callersFunctiongetID
(req *http.Request)
Chapter06/01_what_when_why_how/03_how_much/01_untestable/example.go:26
↓ 1 callersFunctiongetRedisConn
(t *testing.T, ctx context.Context, host string)
Chapter06/05_test_ux/03_reduce_duplication/01_dependencies/example_test.go:24
↓ 1 callersFunctiongetTestVarFromEnv
(t *testing.T, envVar string)
Chapter09/01_api_integrations/examples_apps/pd-user-check/internal/pduty/shared_test.go:8
↓ 1 callersFunctiongetTokenFromWeb
Request a token from the web, then returns the retrieved token.
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/gcal/gcal.go:159
↓ 1 callersMethodgetUserBatch
(apiKey string, search string, offset int)
Chapter09/01_api_integrations/examples_apps/pd-user-check/internal/pduty/get_users.go:57
↓ 1 callersFunctiongetUserDecision
()
Chapter05/01_clarity/04_naming/01_meaningful/02_function_names_test.go:22
↓ 1 callersMethodgetUserEmail
(apiKey string, user *User)
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/pduty/get_user.go:30
↓ 1 callersFunctionhandleError
(err error)
Chapter05/01_clarity/07_shadowing/example.go:23
↓ 1 callersFunctionhandler
(resp http.ResponseWriter, req *http.Request)
Chapter05/01_clarity/03_whitespace/01_handler_bad.go:9
↓ 1 callersFunctioni
(o O, ec chan<- error)
Chapter05/01_clarity/01_bad_example/01_bad_example.go:42
↓ 1 callersFunctioni
(order Order)
Chapter05/01_clarity/10_comments/01_bad_names/example.go:38
↓ 1 callersFunctioninformWarehouse
(order Order, errorCh chan<- error)
Chapter05/01_clarity/01_bad_example/02_better.go:51
↓ 1 callersFunctioninformWarehouse
(order Order)
Chapter05/01_clarity/10_comments/02_fixed/example.go:34
↓ 1 callersFunctioninformWarehouse
(order Order, errorCh chan<- error)
Chapter01/01_concurrency_parallelism/02_parallelism_cost/02_concurrent/main.go:51
↓ 1 callersFunctioninformWarehouse
(order Order)
Chapter01/01_concurrency_parallelism/02_parallelism_cost/01_sequential/main.go:34
↓ 1 callersMethodinformWarehouse
(order Order)
Chapter05/02_consistency/03_file_organization/example.go:34
↓ 1 callersMethodinitializeDBPool
()
Chapter02/01_go_routines/02_unpredictable/02_with_sync/with_sync.go:56
↓ 1 callersMethodinitializeDBPool
()
Chapter02/01_go_routines/02_unpredictable/03_without_goroutine/without_goroutine.go:42
↓ 1 callersMethodinitializeDBPool
()
Chapter02/01_go_routines/02_unpredictable/01_without_sync/without_sync.go:50
↓ 1 callersMethodisAlreadySwapped
(potentialSwap *pduty.ScheduleEntry)
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/conflict/swap.go:67
↓ 1 callersMethodisValid
(order *Order)
Chapter06/07_patterns_tricks/06_concurrent_code/03_latches/02_after/example.go:25
↓ 1 callersMethodisValid
(order *Order)
Chapter06/07_patterns_tricks/06_concurrent_code/03_latches/01_before/example.go:15
↓ 1 callersMethodisValid
(user *User)
Chapter09/01_api_integrations/examples_apps/pd-user-check/internal/printer/printer.go:40
↓ 1 callersFunctionloadAllUsers
()
Chapter08/02_fun_with_functions/02_patterns/02_middleware/02_middleware/example.go:33
↓ 1 callersFunctionloadAllUsers
()
Chapter08/02_fun_with_functions/02_patterns/02_middleware/01_no_middleware/example.go:27
↓ 1 callersFunctionloadByID
(id int)
Chapter05/01_clarity/13_panic/01_exceptions/example.go:30
↓ 1 callersFunctionloadConfigFromDatastore
()
Chapter01/05_sync_atomic/02_load_and_store/dynamic_config.go:60
↓ 1 callersFunctionloadFromDB
(id int)
Chapter05/01_clarity/11_errors/03_wrapped_errors/02_revisited/example.go:57
↓ 1 callersFunctionloadRecord
(ctx context.Context, wg *sync.WaitGroup, semaphoreCh chan struct{}, errorCh chan error, name string)
Chapter02/01_go_routines/04_exit_conditions/02_fixed/exit_conditions.go:14
↓ 1 callersFunctionloadRecord
(ctx context.Context, wg *sync.WaitGroup, semaphoreCh chan struct{}, errorCh chan error, name string)
Chapter02/01_go_routines/04_exit_conditions/01_broken/exit_conditions.go:14
↓ 1 callersFunctionloadUpdate
(responseCh chan data)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/08_indeterminate_select/02_async_result.go:39
↓ 1 callersFunctionloadUpdates
()
Chapter01/03_concurrency_issues/04_detect_fix_avoid/04_memory_for_lock_time/01_copy.go:67
↓ 1 callersFunctionloadUser
(id int64)
Chapter06/01_what_when_why_how/03_how_much/01_untestable/example.go:30
↓ 1 callersFunctionloadUser
(ID string)
Chapter05/01_clarity/11_errors/03_wrapped_errors/02_revisited/example.go:16
↓ 1 callersFunctionloadUser
(ID string)
Chapter05/01_clarity/11_errors/02_named_errors/example.go:15
↓ 1 callersFunctionlog
$ go test -run=Bench. -bench=. -benchtime=10s ./Chapter03/05_patterns/01_unnecesary_construction/ goos: darwin goarch: amd64 pkg: github.com/corsc/Bey
Chapter03/05_patterns/01_unnecesary_construction/example_test.go:16
↓ 1 callersFunctionlogFixed
(debug bool, msg string, args ...interface{})
Chapter03/05_patterns/01_unnecesary_construction/example_test.go:35
↓ 1 callersFunctionmakeConnection
()
Chapter03/03_pprof/01_cpu_profiling/02_downloader/main.go:28
↓ 1 callersMethodmonitorConfig
()
Chapter01/05_sync_atomic/02_load_and_store/dynamic_config.go:35
↓ 1 callersFunctionmySQLIsInstalled
()
Chapter06/07_patterns_tricks/11_skipping_tests/03_check_for_resource_test.go:16
↓ 1 callersFunctionnewCacheUsingMutex
()
Chapter01/02_concurrency_model/03_csp_usability/02_cache_mutex.go:7
↓ 1 callersFunctionnewInvalidOrder
()
Chapter06/07_patterns_tricks/06_concurrent_code/03_latches/02_after/example_test.go:33
↓ 1 callersFunctionnewNewUserRequest
(user NewUser, defaultTimeZone string)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users.go:72
↓ 1 callersFunctionnewOrderManager
(sendTimeout time.Duration)
Chapter06/07_patterns_tricks/04_private_constructors/02_internal_init/example.go:13
↓ 1 callersFunctionnewOrderManager
(sendTimeout time.Duration)
Chapter06/07_patterns_tricks/04_private_constructors/01_test_only_config/example.go:13
↓ 1 callersFunctionnewReceiptSender
(server, from string, sendFunc sendMail)
Chapter06/07_patterns_tricks/04_private_constructors/03_function_deps/02_private_constructor/example.go:15
↓ 1 callersFunctionnewRepository
(db *sql.DB)
Chapter06/07_patterns_tricks/04_private_constructors/04_globals/example.go:14
↓ 1 callersFunctionnewUserManager
(cfg Config, pwdEncoder PasswordEncoder, storage Storage, now func() time.Time, risk RiskManager)
Chapter05/02_consistency/08_constructor_params/02_config_injection/example.go:12
↓ 1 callersFunctionnewUserManager
(minNameLen, maxNameLen int, pwdEncoder PasswordEncoder, storage Storage, now func() time.Time, risk RiskManag
Chapter05/02_consistency/08_constructor_params/01_private_constructors/03_one_implementation/example.go:11
↓ 1 callersFunctionnewUserManager
(minNameLen, maxNameLen int, pwdEncoder PasswordEncoder, storage Storage, now func() time.Time, risk RiskManag
Chapter05/02_consistency/08_constructor_params/01_private_constructors/02_only_for_testing/example.go:11
↓ 1 callersMethodnewWorker
()
Chapter02/05_patterns/03_reply_channel/03_reply_channel.go:19
↓ 1 callersMethodopenFile
(filename string)
Chapter08/02_fun_with_functions/02_patterns/01_abstract_methods/example.go:18
↓ 1 callersMethodoutputHeader
()
Chapter09/01_api_integrations/01_example/03_output/printing.go:12
↓ 1 callersMethodoutputLine
(user *User)
Chapter09/01_api_integrations/01_example/03_output/printing.go:19
↓ 1 callersFunctionparseID
(idAsString string)
Chapter05/01_clarity/13_panic/01_exceptions/example.go:21
↓ 1 callersFunctionperformBusinessLogic
(username string, password string)
Chapter05/03_predictability/03_encapsulation/01_leak_dependency/example.go:16
↓ 1 callersFunctionperformTask
(wg *sync.WaitGroup, semaphore chan struct{})
Chapter03/03_pprof/03_blocking_profiling/02_channel_send/main.go:37
↓ 1 callersFunctionperformTask
(wg *sync.WaitGroup)
Chapter03/03_pprof/03_blocking_profiling/01_waitgroup/main.go:35
↓ 1 callersFunctionperformTask
(wg *sync.WaitGroup)
Chapter03/03_pprof/04_mutex_profiling/01_mutex/main.go:39
↓ 1 callersFunctionperformUpdate
()
Chapter02/03_select/02_read_from_nil/02_extended_example.go:24
↓ 1 callersFunctionperformUpdateAsync
()
Chapter02/03_select/02_read_from_nil/03_extended_example_fixed.go:33
↓ 1 callersFunctionpoliteChecker
(ctx context.Context, wg *sync.WaitGroup, url string)
Chapter01/03_concurrency_issues/02_starvation/main.go:76
↓ 1 callersFunctionprintAll
(in map[string]string)
Chapter08/01_functional_programming/05_referential_transparency/01_maps/example.go:14
↓ 1 callersFunctionprintAll
(in []string)
Chapter08/01_functional_programming/05_referential_transparency/02_slices/example.go:14
↓ 1 callersMethodprocess
(order *Order)
Chapter06/07_patterns_tricks/06_concurrent_code/03_latches/02_after/example.go:30
↓ 1 callersMethodprocess
(order *Order)
Chapter06/07_patterns_tricks/06_concurrent_code/03_latches/01_before/example.go:20
↓ 1 callersMethodprocessActions
()
Chapter01/03_concurrency_issues/04_detect_fix_avoid/05_serialize_access/02_channel/bank.go:40
↓ 1 callersFunctionprocessData
(data Data)
Chapter01/02_concurrency_model/01_select_control_flow/sample.go:18
↓ 1 callersFunctionpublishData
(dataCh chan int)
Chapter03/03_pprof/03_blocking_profiling/03_channel_receive/main.go:38
↓ 1 callersFunctionpublishData
(dataCh chan int)
Chapter03/03_pprof/03_blocking_profiling/04_block_test/example_test.go:29
↓ 1 callersMethodputDown
(chopstick *chopstick)
Chapter01/03_concurrency_issues/03_livelock/livelock.go:66
↓ 1 callersFunctionreadFromNilChannel
()
Chapter02/03_select/02_read_from_nil/01_read_from_nil_channel.go:3
← previousnext →401–500 of 1,301, ranked by callers