MCPcopy Create free account

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

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

↓ 1 callersMethodSave
(user *User)
Chapter04/01_software_design_principles/05_accept_interface_return_struct/05_implicit_interfaces/example.go:9
↓ 1 callersMethodSave
(db *sql.DB, user User)
Chapter03/05_patterns/03_once/example.go:20
↓ 1 callersMethodSave
(db *sql.DB, user User)
Chapter03/05_patterns/04_once_again/example.go:17
↓ 1 callersMethodSave
(filename string)
Chapter08/02_fun_with_functions/02_patterns/01_abstract_methods/example.go:11
↓ 1 callersMethodSaveFixed
(db *sql.DB, user User)
Chapter03/05_patterns/03_once/example.go:27
↓ 1 callersMethodSaveFixed
(db *sql.DB, user User)
Chapter03/05_patterns/04_once_again/example.go:24
↓ 1 callersMethodSend
(dataCh chan<- [batchSize]Item, item Item)
Chapter02/05_patterns/02_batching/02_batching.go:10
↓ 1 callersMethodSet
(key string, value Person)
Chapter01/02_concurrency_model/03_csp_usability/01_cache_channels.go:40
↓ 1 callersMethodSet
(key string, value Person)
Chapter01/02_concurrency_model/03_csp_usability/02_cache_mutex.go:27
↓ 1 callersFunctionShuffle
Shuffle randomizes the order of the supplied cards
Chapter03/03_pprof/02_memory_profiling/game/cards.go:9
↓ 1 callersFunctionShuffle
Shuffle randomizes the order of the supplied cards
Chapter03/03_pprof/01_cpu_profiling/game/cards.go:9
↓ 1 callersFunctionSign
$ go test -run=Bench. -bench=. -benchmem -benchtime=10s ./Chapter03/05_patterns/07_allocations2/ goos: darwin goarch: amd64 pkg: github.com/corsc/Beyo
Chapter03/05_patterns/07_concrete/example_test.go:18
↓ 1 callersFunctionSignFixed
(writer *bytes.Buffer)
Chapter03/05_patterns/07_concrete/example_test.go:35
↓ 1 callersFunctionSimpleTemplate
()
Chapter09/03_code_generation/02_stub_generator/02_template_example/example.go:9
↓ 1 callersMethodSing
()
Chapter04/02_design_patterns/02_factory_method/01_before/example.go:24
↓ 1 callersFunctionStartServer
()
Chapter08/02_fun_with_functions/02_patterns/04_decoration/example.go:7
↓ 1 callersMethodSyncEscalation
SyncEscalation attempts to download the existing escalation policies and create any that do not yet exist. Note: existing data will not be modified in
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager.go:248
↓ 1 callersMethodSyncSchedules
SyncSchedules attempts to download the existing schedules and create any that do not yet exist. Note: existing data will not be modified in any way.
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager.go:214
↓ 1 callersMethodSyncServices
SyncServices attempts to download the existing services and create any that do not yet exist. Note: existing data will not be modified in any way.
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager.go:282
↓ 1 callersMethodSyncTeams
SyncTeams attempts to download the existing teams and create any that do not yet exist. Note: existing data will not be modified in any way. Note: cre
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager.go:163
↓ 1 callersMethodSyncUsers
SyncUsers attempts to download the existing users and create any that do not yet exist. Note: existing data will not be modified in any way.
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager.go:129
↓ 1 callersMethodTalk
()
Chapter04/01_software_design_principles/04_composition_over_inheritance/01_composition/example.go:17
↓ 1 callersMethodTalk
()
Chapter04/01_software_design_principles/04_composition_over_inheritance/01_composition/example.go:29
↓ 1 callersMethodTalk
()
Chapter04/01_software_design_principles/04_composition_over_inheritance/03_implements/example.go:7
↓ 1 callersFunctionToLower
(in map[string]string)
Chapter08/01_functional_programming/05_referential_transparency/01_maps/example.go:8
↓ 1 callersFunctionToLower
(in []string)
Chapter08/01_functional_programming/05_referential_transparency/02_slices/example.go:8
↓ 1 callersFunctionTransformAndFilter
(in <-chan *User, chainedFunctions ...ChainedFunction)
Chapter08/02_fun_with_functions/02_patterns/05_function_chaining/example.go:17
↓ 1 callersMethodUnfollow
Unsubscribe/Remove from the list of observers
Chapter04/02_design_patterns/03_observer/example.go:27
↓ 1 callersMethodUpload
Notify all observers
Chapter04/02_design_patterns/03_observer/example.go:44
↓ 1 callersFunctionUsageConfig
(hostConfig AppConfig)
Chapter04/02_design_patterns/04_adapter/03_go_types/version2/config.go:12
↓ 1 callersFunctionUserAsJSON
(name, address string, age int)
Chapter06/08_test_induced_damage/04_test_coverage/example.go:8
↓ 1 callersMethodValidate
validate the supplied user is complete and correct
Chapter04/01_software_design_principles/06_singles/02_responsibility/02_after/user_validator.go:6
↓ 1 callersMethodValidate
validate the supplied user is complete and correct
Chapter04/01_software_design_principles/06_singles/03_abstraction/01_before/user_validator.go:6
↓ 1 callersMethodWatch
()
Chapter04/02_design_patterns/03_observer/example.go:64
↓ 1 callersMethodadd
(newItem int)
Chapter03/05_patterns/09_conditional_add/example_test.go:31
↓ 1 callersMethodadd
(newItem int)
Chapter03/05_patterns/09_conditional_add/example_test.go:60
↓ 1 callersFunctionaddToOrderQuantity
(orderID string, productCode string, qty int)
Chapter05/02_consistency/07_bool_arguments/02_as_return.go:28
↓ 1 callersFunctionbuildConfig
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/cmd/main.go:45
↓ 1 callersFunctionbuildGreeting
(name string)
Chapter08/02_fun_with_functions/01_understanding/02_closures/01_greetings/example.go:3
↓ 1 callersFunctionbuildMemberLayer
(schedule ReqSchedule, location *time.Location)
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:194
↓ 1 callersMethodbuildReceipt
(order Order)
Chapter06/07_patterns_tricks/04_private_constructors/03_function_deps/01_default_implementation/example.go:35
↓ 1 callersMethodbuildReceipt
(order Order)
Chapter06/07_patterns_tricks/04_private_constructors/03_function_deps/02_private_constructor/example.go:43
↓ 1 callersMethodbuildRequest
(apiKey string, scheduleID string, start time.Time, end time.Time)
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/pduty/get_schedule.go:72
↓ 1 callersMethodbuildRequest
(apiKey string, userID string)
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/pduty/get_user.go:64
↓ 1 callersMethodbuildRequest
(apiKey string, search string, offset int)
Chapter09/01_api_integrations/examples_apps/pd-user-check/internal/pduty/get_users.go:84
↓ 1 callersMethodbuildRequest
(ctx context.Context)
Chapter09/01_api_integrations/01_example/01_calling_the_api/calling_pagerduty.go:78
↓ 1 callersFunctionbuildTotaler
()
Chapter08/02_fun_with_functions/01_understanding/02_closures/02_state/example.go:3
↓ 1 callersFunctionc
(o O)
Chapter05/01_clarity/01_bad_example/01_bad_example.go:34
↓ 1 callersFunctionc
(order Order)
Chapter05/01_clarity/10_comments/01_bad_names/example.go:30
↓ 1 callersMethodcacheWorker
()
Chapter01/02_concurrency_model/03_csp_usability/01_cache_channels.go:51
↓ 1 callersFunctionchargeCustomer
(order Order)
Chapter05/01_clarity/01_bad_example/02_better.go:43
↓ 1 callersFunctionchargeCustomer
(order Order)
Chapter05/01_clarity/10_comments/02_fixed/example.go:26
↓ 1 callersFunctionchargeCustomer
(order Order)
Chapter01/01_concurrency_parallelism/02_parallelism_cost/02_concurrent/main.go:43
↓ 1 callersFunctionchargeCustomer
(order Order)
Chapter01/01_concurrency_parallelism/02_parallelism_cost/01_sequential/main.go:26
↓ 1 callersMethodchargeCustomer
(ctx context.Context, order Order)
Chapter06/02_table_driven_tests/example.go:55
↓ 1 callersMethodchargeCustomer
(ctx context.Context, order Order)
Chapter06/04_mocks_stubs_recorders/01_mocks/example.go:55
↓ 1 callersMethodchargeCustomer
(order Order)
Chapter06/01_what_when_why_how/04_what/example.go:35
↓ 1 callersMethodchargeCustomer
(ctx context.Context, order Order)
Chapter06/05_test_ux/01_predictability/example.go:55
↓ 1 callersMethodchargeCustomer
(ctx context.Context, order Order)
Chapter06/05_test_ux/03_reduce_duplication/02_mocks/example.go:55
↓ 1 callersMethodchargeCustomer
(order Order)
Chapter05/02_consistency/03_file_organization/example.go:25
↓ 1 callersFunctioncheckForConflicts
(schedule *pduty.Schedule, calendars map[string]*gcal.Calendar, daysBetweenShifts int64)
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/main.go:89
↓ 1 callersMethodcheckMinimumDays
(schedule *pduty.Schedule, currentEntry *pduty.ScheduleEntry, daysBetweenShifts int64)
Chapter09/01_api_integrations/examples_apps/pagerduty-gcal/internal/conflict/checker.go:69
↓ 1 callersFunctioncloseConnection
(conn net.Conn)
Chapter03/03_pprof/01_cpu_profiling/02_downloader/main.go:52
↓ 1 callersMethodcloseFile
(file *os.File)
Chapter08/02_fun_with_functions/02_patterns/01_abstract_methods/example.go:27
↓ 1 callersFunctionconfigInjectionExample
(storage example.Storage, risk example.RiskManager)
Chapter05/02_consistency/08_constructor_params/02_config_injection/example_usage_test.go:23
↓ 1 callersFunctionconfigInjectionExample
(storage example.Storage, risk example.RiskManager)
Chapter05/02_consistency/08_constructor_params/01_private_constructors/03_one_implementation/example_usage_test.go:23
↓ 1 callersFunctionconsumeData
(wg *sync.WaitGroup, dataCh chan int)
Chapter03/03_pprof/03_blocking_profiling/03_channel_receive/main.go:49
↓ 1 callersFunctionconsumeData
(wg *sync.WaitGroup, dataCh chan int)
Chapter03/03_pprof/03_blocking_profiling/04_block_test/example_test.go:40
↓ 1 callersMethodconvertUsers
(rawUsers []*userOuter)
Chapter09/01_api_integrations/examples_apps/pd-user-check/internal/pduty/get_users.go:102
↓ 1 callersMethodconvertUsers
(rawUsers []*users)
Chapter09/01_api_integrations/01_example/01_calling_the_api/calling_pagerduty.go:96
↓ 1 callersFunctiondataUpdater
(ctx context.Context, wg *sync.WaitGroup, updateCh chan<- *update)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/01_communicate_dont_share/02_channel/channel.go:55
↓ 1 callersFunctiondataUpdater
(ctx context.Context, wg *sync.WaitGroup)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/01_communicate_dont_share/01_mutex/mutex.go:58
↓ 1 callersFunctiondataUser
(ctx context.Context, wg *sync.WaitGroup, updateCh <-chan *update)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/01_communicate_dont_share/02_channel/channel.go:24
↓ 1 callersFunctiondataUser
(ctx context.Context, wg *sync.WaitGroup)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/01_communicate_dont_share/01_mutex/mutex.go:31
↓ 1 callersFunctiondoHeavyWork
(data Data)
Chapter02/04_semaphores/02_weighted/weighted.go:62
↓ 1 callersFunctiondoLightWork
(data Data)
Chapter02/04_semaphores/02_weighted/weighted.go:58
↓ 1 callersFunctiondoSomething
()
Chapter06/08_test_induced_damage/02_outputs/02_after/example.go:11
↓ 1 callersFunctiondoTimeConsumingWork
(result chan<- int64, in int64)
Chapter08/03_futures/02_channel_based/example_test.go:32
↓ 1 callersFunctiondoTimeConsumingWork
(mutex *sync.Mutex, result *int64, in int64)
Chapter08/03_futures/01_function_based/example_test.go:41
↓ 1 callersFunctiondoWork
(resultCh chan error)
Chapter05/01_clarity/07_shadowing/example.go:18
↓ 1 callersFunctiondoWork
intentionally do something CPU intensive
Chapter01/01_concurrency_parallelism/03_goroutine_cost/02/main.go:22
↓ 1 callersFunctiondoWork
intentionally do something CPU intensive
Chapter01/01_concurrency_parallelism/03_goroutine_cost/01/main.go:20
↓ 1 callersFunctiondoWork
()
Chapter02/02_channels/03_skip_close/skip_close.go:22
↓ 1 callersFunctiondoWork
(item Item)
Chapter02/05_patterns/02_batching/01_standard.go:9
↓ 1 callersFunctiondoWork
(data Data)
Chapter02/04_semaphores/01_limit_pending/limit_pending.go:39
↓ 1 callersFunctiondoWork
(shutdownCh chan struct{})
Chapter08/04_struct_tricks/01_empty/03_signal/example.go:19
↓ 1 callersFunctiondoWorkWithDefer
(mutex *sync.Mutex)
Chapter03/05_patterns/14_defer/example_test.go:23
↓ 1 callersFunctiondoWorkWithoutDefer
(mutex *sync.Mutex)
Chapter03/05_patterns/14_defer/example_test.go:38
↓ 1 callersFunctiondouble
(wg *sync.WaitGroup, outputs []int, outputMutex *sync.Mutex, index int, value int)
Chapter02/01_go_routines/01_anonymous_closures/03_data_race.go:28
↓ 1 callersFunctiondownload
(conn net.Conn)
Chapter03/03_pprof/01_cpu_profiling/02_downloader/main.go:40
↓ 1 callersMethodeatUntilFull
()
Chapter01/03_concurrency_issues/01_deadlock/01_mutexes/mutexes.go:29
↓ 1 callersMethodeatUntilFull
()
Chapter01/03_concurrency_issues/03_livelock/livelock.go:52
↓ 1 callersMethodextractIDFromRequest
(request *http.Request)
Chapter04/01_software_design_principles/07_interface_segregation/01_fat_interface/example.go:34
↓ 1 callersMethodextractIDFromRequest
(request *http.Request)
Chapter04/01_software_design_principles/07_interface_segregation/02_thin_interface/example.go:31
↓ 1 callersFunctionextractParamType
(param ast.Expr)
Chapter09/03_code_generation/02_stub_generator/03_generator_v6/parser.go:106
↓ 1 callersFunctionextractParamType
(param ast.Expr)
Chapter09/03_code_generation/02_stub_generator/03_generator_v5/parser.go:106
↓ 1 callersFunctionextractParamType
(param ast.Expr)
Chapter09/03_code_generation/02_stub_generator/03_generator_v7/parser.go:106
↓ 1 callersFunctionextractParamType
(param ast.Expr)
Chapter09/03_code_generation/02_stub_generator/03_generator_v1/parser.go:106
↓ 1 callersFunctionextractParamType
(param ast.Expr)
Chapter09/03_code_generation/02_stub_generator/03_generator_v8/parser.go:106
↓ 1 callersFunctionextractParamType
(param ast.Expr)
Chapter09/03_code_generation/02_stub_generator/03_generator_v4/parser.go:106
← previousnext →301–400 of 1,301, ranked by callers