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
Method
BaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users.go:126
Method
BaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users_test.go:174
Method
BaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/pd/api.go:163
Method
BaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/pd/api_get_test.go:120
Method
BaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations_test.go:309
Method
BaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/escalations/escalations.go:233
Method
BaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/services/services_test.go:232
Method
BaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/services/services.go:188
Method
BaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules.go:272
Method
BaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/schedules/schedules_test.go:317
Method
BaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/tests/e2e/shared_test.go:21
Method
BaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/teams/teams_test.go:322
Method
BaseURL
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/cmd/main.go:71
Function
BenchmarkAdd
$ 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
Function
BenchmarkAddFixed
(b *testing.B)
Chapter03/04_benchmarking/04_optimization/sample_test.go:29
Function
BenchmarkAppend
(b *testing.B)
Chapter03/05_patterns/13_string_format/example_test.go:42
Function
BenchmarkAtomicAdd
BenchmarkAtomicAdd-8 300 5367699 ns/op
Chapter01/05_sync_atomic/01_add/benchmark_test.go:25
Function
BenchmarkBasics
(b *testing.B)
Chapter03/04_benchmarking/01_basics/sample_test.go:7
Function
BenchmarkBuilder
(b *testing.B)
Chapter03/05_patterns/13_string_format/example_test.go:55
Function
BenchmarkCleanExample
(b *testing.B)
Chapter03/01_when_to_optimize/functions_test.go:17
Function
BenchmarkDoSomething
(b *testing.B)
Chapter06/07_patterns_tricks/08_parallel_benchmarks/example_test.go:7
Function
BenchmarkDoSomethingParallel
(b *testing.B)
Chapter06/07_patterns_tricks/08_parallel_benchmarks/example_test.go:13
Function
BenchmarkExample
$ 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
Function
BenchmarkExample
$ 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
Function
BenchmarkExample
(b *testing.B)
Chapter03/05_patterns/13_string_format/example_test.go:22
Function
BenchmarkExample
(b *testing.B)
Chapter03/05_patterns/06_allocations/example_test.go:25
Function
BenchmarkExample
$ 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
Function
BenchmarkExample
(b *testing.B)
Chapter03/05_patterns/02_unnecessary_conversion/example_test.go:22
Function
BenchmarkExample
$ 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
Function
BenchmarkExample
$ 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
Function
BenchmarkExample
$ 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
Function
BenchmarkExample
(b *testing.B)
Chapter03/05_patterns/01_unnecesary_construction/example_test.go:24
Function
BenchmarkExample
$ 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
Function
BenchmarkExample
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
Function
BenchmarkExampleFastFailBadInput
(b *testing.B)
Chapter03/05_patterns/15_cheap/example_test.go:40
Function
BenchmarkExampleFastFailGoodInput
(b *testing.B)
Chapter03/05_patterns/15_cheap/example_test.go:48
Function
BenchmarkExampleFixed
(b *testing.B)
Chapter03/05_patterns/08_find/example_test.go:45
Function
BenchmarkExampleRegexOnlyBadInput
(b *testing.B)
Chapter03/05_patterns/15_cheap/example_test.go:20
Function
BenchmarkExampleRegexOnlyGoodInput
(b *testing.B)
Chapter03/05_patterns/15_cheap/example_test.go:28
Function
BenchmarkFastExample
(b *testing.B)
Chapter03/01_when_to_optimize/functions_test.go:34
Function
BenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/12_string_concat/example_test.go:30
Function
BenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/14_defer/example_test.go:30
Function
BenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/06_allocations/example_test.go:45
Function
BenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/02_unnecessary_conversion/example_test.go:35
Function
BenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/05_data/example_test.go:47
Function
BenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/09_conditional_add/example_test.go:41
Function
BenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/03_once/example_test.go:33
Function
BenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/01_unnecesary_construction/example_test.go:43
Function
BenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/11_preallocate/example_test.go:27
Function
BenchmarkFixed
(b *testing.B)
Chapter03/05_patterns/04_once_again/example_test.go:33
Function
BenchmarkFixedWithPreallocate
(b *testing.B)
Chapter03/05_patterns/12_string_concat/example_test.go:45
Function
BenchmarkMapInt
(b *testing.B)
Chapter03/05_patterns/10_maps/example_test.go:31
Function
BenchmarkMapString
$ 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
Function
BenchmarkMutexAdd
BenchmarkMutexAdd-8 100 14997051 ns/op
Chapter01/05_sync_atomic/01_add/benchmark_test.go:39
Function
BenchmarkPerson1
(b *testing.B)
Chapter03/04_benchmarking/02_good/sample_test.go:32
Function
BenchmarkPerson10
(b *testing.B)
Chapter03/04_benchmarking/02_good/sample_test.go:36
Function
BenchmarkPerson1000
(b *testing.B)
Chapter03/04_benchmarking/02_good/sample_test.go:40
Function
BenchmarkSign
(b *testing.B)
Chapter03/05_patterns/07_concrete/example_test.go:23
Function
BenchmarkSignFixed
(b *testing.B)
Chapter03/05_patterns/07_concrete/example_test.go:40
Function
BenchmarkSimpleAdd
BenchmarkSimpleAdd-8 1000 1985808 ns/op
Chapter01/05_sync_atomic/01_add/benchmark_test.go:13
Function
BenchmarkStrconv
(b *testing.B)
Chapter03/05_patterns/13_string_format/example_test.go:32
Function
BenchmarkToString
(b *testing.B)
Chapter03/04_benchmarking/03_efficient/sample_test.go:19
Function
BenchmarkToString
(b *testing.B)
Chapter03/04_benchmarking/05_extended/sample_test.go:25
Function
BlockingCaseExample
(ctx context.Context)
Chapter01/03_concurrency_issues/04_detect_fix_avoid/08_indeterminate_select/01_blocking_case.go:8
Method
Bold
(text string)
Chapter04/02_design_patterns/02_factory_method/02_example/example.go:24
Method
Bold
(text string)
Chapter04/02_design_patterns/02_factory_method/02_example/example.go:34
Method
Build
(version int, encoder Encoder, decoder Decoder)
Chapter05/01_clarity/09_avoid_foreign_idioms/03_builder/03_builder.go:9
Function
CardShuffler
(resp http.ResponseWriter, req *http.Request)
Chapter03/03_pprof/02_memory_profiling/01_cards/main.go:47
Function
CardShuffler
(resp http.ResponseWriter, req *http.Request)
Chapter03/03_pprof/01_cpu_profiling/01_cards/main.go:47
Function
ChannelExample
()
Chapter05/02_consistency/01_style/02_channels.go:3
Method
Charge
(ctx context.Context, customerName string, amount int64)
Chapter06/08_test_induced_damage/03_public_mocks/example.go:10
Method
Charge
Charge provides a mock function with given fields: ctx, customerName, amount
Chapter06/08_test_induced_damage/03_public_mocks/mock_bank_test.go:17
Method
Charge
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
Method
Charge
(ctx context.Context, customerName string, amount int64)
Chapter06/02_table_driven_tests/example.go:71
Method
Charge
Charge provides a mock function with given fields: ctx, customerName, amount
Chapter06/02_table_driven_tests/mock_bank_test.go:17
Method
Charge
(ctx context.Context, customerName string, amount int64)
Chapter06/04_mocks_stubs_recorders/02_stubs/01_fixed/example_test.go:9
Method
Charge
(ctx context.Context, customerName string, amount int64)
Chapter06/04_mocks_stubs_recorders/02_stubs/01_fixed/example_test.go:14
Method
Charge
(ctx context.Context, customerName string, amount int64)
Chapter06/04_mocks_stubs_recorders/02_stubs/02_simple/example_test.go:8
Method
Charge
(ctx context.Context, customerName string, amount int64)
Chapter06/04_mocks_stubs_recorders/02_stubs/02_simple/example_test.go:16
Method
Charge
(ctx context.Context, customerName string, amount int64)
Chapter06/04_mocks_stubs_recorders/01_mocks/example.go:71
Method
Charge
Charge provides a mock function with given fields: ctx, customerName, amount
Chapter06/04_mocks_stubs_recorders/01_mocks/mock_bank_test.go:17
Method
Charge
(ctx context.Context, customerName string, amount int64)
Chapter06/05_test_ux/01_predictability/example.go:71
Method
Charge
Charge provides a mock function with given fields: ctx, customerName, amount
Chapter06/05_test_ux/01_predictability/mock_bank_test.go:17
Method
Charge
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
Method
Check
(user User)
Chapter05/02_consistency/08_constructor_params/02_config_injection/example.go:59
Method
Check
(user User)
Chapter05/02_consistency/08_constructor_params/01_private_constructors/03_one_implementation/example.go:53
Method
Check
(user User)
Chapter05/02_consistency/08_constructor_params/01_private_constructors/02_only_for_testing/example.go:45
Function
CloseReplyChannel
()
Chapter02/05_patterns/03_reply_channel/02_reply_channel.go:3
Function
CloseTraditional
()
Chapter02/05_patterns/03_reply_channel/01_reply_channel.go:3
Method
Config
()
Chapter01/05_sync_atomic/02_load_and_store/dynamic_config.go:55
Method
Consume
(ordersCh chan *Order)
Chapter06/07_patterns_tricks/06_concurrent_code/03_latches/01_before/example.go:5
Method
Count
()
Chapter01/06_sync/04_mutex/02_reentrant/reentrant.go:25
Function
CreateUser
(repository UserRepository, user *user.User)
Chapter04/01_software_design_principles/05_accept_interface_return_struct/04_testability_improved/example.go:7
Function
CreateUser
(repository *repo.UserDAO, user *user.User)
Chapter04/01_software_design_principles/05_accept_interface_return_struct/03_testability/example.go:8
Method
CreateUserHandler
(http.Response, *http.Request)
Chapter04/01_software_design_principles/06_singles/01_purpose/01_user_management_endpoints.go:11
Method
Debug
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager_test.go:71
Method
Debug
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/manager.go:336
Method
Debug
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users.go:125
Method
Debug
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/users/users_test.go:170
Method
Debug
()
Chapter09/01_api_integrations/examples_apps/pagerduty-manager/internal/pd/api.go:162
← previous
next →
601–700 of 1,301, ranked by callers