MCPcopy Create free account

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

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

MethodBaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users.go:126
MethodBaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users_test.go:174
MethodBaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/pd/api.go:163
MethodBaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/pd/api_get_test.go:120
MethodBaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations_test.go:309
MethodBaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:233
MethodBaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/services/services_test.go:232
MethodBaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/services/services.go:188
MethodBaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:272
MethodBaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules_test.go:317
MethodBaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/tests/e2e/shared_test.go:21
MethodBaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams_test.go:322
MethodBaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/cmd/main.go:71
FunctionBenchmarkAdd
$ go test -run=Bench. -bench=. ./Chapter03/04_benchmarking/04_optimization/ goos: darwin goarch: amd64 pkg: github.com/corsc/Beyond-Effective-Go/Chapt
Chapter03/04_benchmarking/04_optimization/sample_test.go:21
FunctionBenchmarkAddFixed
(b *testing.B)
Chapter03/04_benchmarking/04_optimization/sample_test.go:29
FunctionBenchmarkAppend
(b *testing.B)
Chapter03/05_patterns/13_string_format/example_test.go:42
FunctionBenchmarkAtomicAdd
BenchmarkAtomicAdd-8 300 5367699 ns/op
Chapter01/05_sync_atomic/01_add/benchmark_test.go:25
FunctionBenchmarkBasics
(b *testing.B)
Chapter03/04_benchmarking/01_basics/sample_test.go:7
FunctionBenchmarkBuilder
(b *testing.B)
Chapter03/05_patterns/13_string_format/example_test.go:55
FunctionBenchmarkCleanExample
(b *testing.B)
Chapter03/01_when_to_optimize/functions_test.go:17
FunctionBenchmarkDoSomething
(b *testing.B)
Chapter06/07_patterns_tricks/08_parallel_benchmarks/example_test.go:7
FunctionBenchmarkDoSomethingParallel
(b *testing.B)
Chapter06/07_patterns_tricks/08_parallel_benchmarks/example_test.go:13
FunctionBenchmarkExample
$ go test -run=Bench. -bench=. -benchtime=10s -benchmem ./Chapter03/05_patterns/12_string_concat/ goos: darwin goarch: amd64 pkg: github.com/corsc/Bey
Chapter03/05_patterns/12_string_concat/example_test.go:16
FunctionBenchmarkExample
$ go test -run=Bench. -bench=. -benchtime=10s -benchmem ./Chapter03/05_patterns/14_defer/ goos: darwin goarch: amd64 pkg: github.com/corsc/Beyond-Effe
Chapter03/05_patterns/14_defer/example_test.go:15
FunctionBenchmarkExample
(b *testing.B)
Chapter03/05_patterns/13_string_format/example_test.go:22
FunctionBenchmarkExample
(b *testing.B)
Chapter03/05_patterns/06_allocations/example_test.go:25
FunctionBenchmarkExample
$ go test -run=Bench. -bench=. -benchmem -benchtime=10s ./Chapter03/05_patterns/08_find/ goos: darwin goarch: amd64 pkg: github.com/corsc/Beyond-Effec
Chapter03/05_patterns/08_find/example_test.go:17
FunctionBenchmarkExample
(b *testing.B)
Chapter03/05_patterns/02_unnecessary_conversion/example_test.go:22
FunctionBenchmarkExample
$ go test -run=Bench. -bench=. -benchtime=10s ./Chapter03/05_patterns/05_data/ goos: darwin goarch: amd64 pkg: github.com/corsc/Beyond-Effective-Go/Ch
Chapter03/05_patterns/05_data/example_test.go:19
FunctionBenchmarkExample
$ go test -run=Bench. -bench=. -benchtime=10s ./Chapter03/05_patterns/09_conditional_add/ goos: darwin goarch: amd64 pkg: github.com/corsc/Beyond-Effe
Chapter03/05_patterns/09_conditional_add/example_test.go:16
FunctionBenchmarkExample
$ go test -run=Bench. -bench=. -benchtime=10s ./Chapter03/05_patterns/03_once/ goos: darwin goarch: amd64 pkg: github.com/corsc/Beyond-Effective-Go/Ch
Chapter03/05_patterns/03_once/example_test.go:16
FunctionBenchmarkExample
(b *testing.B)
Chapter03/05_patterns/01_unnecesary_construction/example_test.go:24
FunctionBenchmarkExample
$ go test -run=Bench. -bench=. -benchtime=10s ./Chapter03/05_patterns/11_preallocate/ goos: darwin goarch: amd64 pkg: github.com/corsc/Beyond-Effectiv
Chapter03/05_patterns/11_preallocate/example_test.go:15
FunctionBenchmarkExample
go test -run=Bench. -bench=. -benchtime=10s ./Chapter03/05_patterns/04_once_again/ goos: darwin goarch: amd64 pkg: github.com/corsc/Beyond-Effective-G
Chapter03/05_patterns/04_once_again/example_test.go:16
FunctionBenchmarkExampleFastFailBadInput
(b *testing.B)
Chapter03/05_patterns/15_cheap/example_test.go:40
FunctionBenchmarkExampleFastFailGoodInput
(b *testing.B)
Chapter03/05_patterns/15_cheap/example_test.go:48
FunctionBenchmarkExampleFixed
(b *testing.B)
Chapter03/05_patterns/08_find/example_test.go:45
FunctionBenchmarkExampleRegexOnlyBadInput
(b *testing.B)
Chapter03/05_patterns/15_cheap/example_test.go:20
FunctionBenchmarkExampleRegexOnlyGoodInput
(b *testing.B)
Chapter03/05_patterns/15_cheap/example_test.go:28
FunctionBenchmarkFastExample
(b *testing.B)
Chapter03/01_when_to_optimize/functions_test.go:34
FunctionBenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/12_string_concat/example_test.go:30
FunctionBenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/14_defer/example_test.go:30
FunctionBenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/06_allocations/example_test.go:45
FunctionBenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/02_unnecessary_conversion/example_test.go:35
FunctionBenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/05_data/example_test.go:47
FunctionBenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/09_conditional_add/example_test.go:41
FunctionBenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/03_once/example_test.go:33
FunctionBenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/01_unnecesary_construction/example_test.go:43
FunctionBenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/11_preallocate/example_test.go:27
FunctionBenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/04_once_again/example_test.go:33
FunctionBenchmarkFixedWithPreallocate
(b *testing.B)
Chapter03/05_patterns/12_string_concat/example_test.go:45
FunctionBenchmarkMapInt
(b *testing.B)
Chapter03/05_patterns/10_maps/example_test.go:31
FunctionBenchmarkMapString
$ go test -run=Bench. -bench=. -benchtime=10s ./Chapter03/05_patterns/10_maps/ goos: darwin goarch: amd64 pkg: github.com/corsc/Beyond-Effective-Go/Ch
Chapter03/05_patterns/10_maps/example_test.go:17
FunctionBenchmarkMutexAdd
BenchmarkMutexAdd-8 100 14997051 ns/op
Chapter01/05_sync_atomic/01_add/benchmark_test.go:39
FunctionBenchmarkPerson1
(b *testing.B)
Chapter03/04_benchmarking/02_good/sample_test.go:32
FunctionBenchmarkPerson10
(b *testing.B)
Chapter03/04_benchmarking/02_good/sample_test.go:36
FunctionBenchmarkPerson1000
(b *testing.B)
Chapter03/04_benchmarking/02_good/sample_test.go:40
FunctionBenchmarkSign
(b *testing.B)
Chapter03/05_patterns/07_concrete/example_test.go:23
FunctionBenchmarkSignFixed
(b *testing.B)
Chapter03/05_patterns/07_concrete/example_test.go:40
FunctionBenchmarkSimpleAdd
BenchmarkSimpleAdd-8 1000 1985808 ns/op
Chapter01/05_sync_atomic/01_add/benchmark_test.go:13
FunctionBenchmarkStrconv
(b *testing.B)
Chapter03/05_patterns/13_string_format/example_test.go:32
FunctionBenchmarkToString
(b *testing.B)
Chapter03/04_benchmarking/03_efficient/sample_test.go:19
FunctionBenchmarkToString
(b *testing.B)
Chapter03/04_benchmarking/05_extended/sample_test.go:25
FunctionBlockingCaseExample
(ctx context.Context)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/08_indeterminate_select/01_blocking_case.go:8
MethodBold
(text string)
Chapter04/02_design_patterns/02_factory_method/02_example/example.go:24
MethodBold
(text string)
Chapter04/02_design_patterns/02_factory_method/02_example/example.go:34
MethodBuild
(version int, encoder Encoder, decoder Decoder)
Chapter05/01_clarity/09_avoid_foreign_idioms/03_builder/03_builder.go:9
FunctionCardShuffler
(resp http.ResponseWriter, req *http.Request)
Chapter03/03_pprof/02_memory_profiling/01_cards/main.go:47
FunctionCardShuffler
(resp http.ResponseWriter, req *http.Request)
Chapter03/03_pprof/01_cpu_profiling/01_cards/main.go:47
FunctionChannelExample
()
Chapter05/02_consistency/01_style/02_channels.go:3
MethodCharge
(ctx context.Context, customerName string, amount int64)
Chapter06/08_test_induced_damage/03_public_mocks/example.go:10
MethodCharge
Charge provides a mock function with given fields: ctx, customerName, amount
Chapter06/08_test_induced_damage/03_public_mocks/mock_bank_test.go:17
MethodCharge
Charge provides a mock function with given fields: ctx, customerName, amount
Chapter06/08_test_induced_damage/03_public_mocks/internal/example/bank_test.go:17
MethodCharge
(ctx context.Context, customerName string, amount int64)
Chapter06/02_table_driven_tests/example.go:71
MethodCharge
Charge provides a mock function with given fields: ctx, customerName, amount
Chapter06/02_table_driven_tests/mock_bank_test.go:17
MethodCharge
(ctx context.Context, customerName string, amount int64)
Chapter06/04_mocks_stubs_recorders/02_stubs/01_fixed/example_test.go:9
MethodCharge
(ctx context.Context, customerName string, amount int64)
Chapter06/04_mocks_stubs_recorders/02_stubs/01_fixed/example_test.go:14
MethodCharge
(ctx context.Context, customerName string, amount int64)
Chapter06/04_mocks_stubs_recorders/02_stubs/02_simple/example_test.go:8
MethodCharge
(ctx context.Context, customerName string, amount int64)
Chapter06/04_mocks_stubs_recorders/02_stubs/02_simple/example_test.go:16
MethodCharge
(ctx context.Context, customerName string, amount int64)
Chapter06/04_mocks_stubs_recorders/01_mocks/example.go:71
MethodCharge
Charge provides a mock function with given fields: ctx, customerName, amount
Chapter06/04_mocks_stubs_recorders/01_mocks/mock_bank_test.go:17
MethodCharge
(ctx context.Context, customerName string, amount int64)
Chapter06/05_test_ux/01_predictability/example.go:71
MethodCharge
Charge provides a mock function with given fields: ctx, customerName, amount
Chapter06/05_test_ux/01_predictability/mock_bank_test.go:17
MethodCharge
Charge provides a mock function with given fields: ctx, customerName, amount
Chapter06/05_test_ux/03_reduce_duplication/02_mocks/mock_bank_test.go:17
MethodCheck
(user User)
Chapter05/02_consistency/08_constructor_params/02_config_injection/example.go:59
MethodCheck
(user User)
Chapter05/02_consistency/08_constructor_params/01_private_constructors/03_one_implementation/example.go:53
MethodCheck
(user User)
Chapter05/02_consistency/08_constructor_params/01_private_constructors/02_only_for_testing/example.go:45
FunctionCloseReplyChannel
()
Chapter02/05_patterns/03_reply_channel/02_reply_channel.go:3
FunctionCloseTraditional
()
Chapter02/05_patterns/03_reply_channel/01_reply_channel.go:3
MethodConfig
()
Chapter01/05_sync_atomic/02_load_and_store/dynamic_config.go:55
MethodConsume
(ordersCh chan *Order)
Chapter06/07_patterns_tricks/06_concurrent_code/03_latches/01_before/example.go:5
MethodCount
()
Chapter01/06_sync/04_mutex/02_reentrant/reentrant.go:25
FunctionCreateUser
(repository UserRepository, user *user.User)
Chapter04/01_software_design_principles/05_accept_interface_return_struct/04_testability_improved/example.go:7
FunctionCreateUser
(repository *repo.UserDAO, user *user.User)
Chapter04/01_software_design_principles/05_accept_interface_return_struct/03_testability/example.go:8
MethodCreateUserHandler
(http.Response, *http.Request)
Chapter04/01_software_design_principles/06_singles/01_purpose/01_user_management_endpoints.go:11
MethodDebug
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager_test.go:71
MethodDebug
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager.go:336
MethodDebug
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users.go:125
MethodDebug
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users_test.go:170
MethodDebug
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/pd/api.go:162
← previousnext →601–700 of 1,301, ranked by callers