MCPcopy Create free account

hub / github.com/Shitaibin/golang_step_by_step / functions

Functions617 in github.com/Shitaibin/golang_step_by_step

↓ 1 callersFunctionNewBank
()
channel_plus_sync/channel_map.go:49
↓ 1 callersFunctionNewBank
()
sync_pkg/no_mutex.go:12
↓ 1 callersFunctionNewBank
()
sync_pkg/mutex.go:14
↓ 1 callersFunctionNewBank
()
sync_pkg/rwmutex.go:14
↓ 1 callersFunctionNewClient
(endpoint string, transport http.RoundTripper)
http/client/simple_cilent.go:20
↓ 1 callersFunctionNewHelloServiceClient
(cc grpc.ClientConnInterface)
grpc/client/hello.pb.go:182
↓ 1 callersFunctionNewHost
()
first_class_function/host_v2/host/host.go:24
↓ 1 callersFunctionNewHost
()
first_class_function/host_v1/host/host.go:25
↓ 1 callersFunctionNewTag
()
build_tag/tag_darwin.go:5
↓ 1 callersMethodNumOfPeers
NumOfPeers peer的数量
first_class_function/host_v3/host/host.go:100
↓ 1 callersFunctionPipelineSimple
()
golang_pipeline_step_by_step/buffer_size/hi_fan_buffered.go:87
↓ 1 callersFunctionPlus
(id int, wg *sync.WaitGroup, gs chan int)
concurrent/cpucore/core_test.go:30
↓ 1 callersMethodQuery
Query 查询余额
channel_plus_sync/channel_map.go:121
↓ 1 callersMethodQuery
Query 查询余额
sync_pkg/rwmutex.go:49
↓ 1 callersMethodQuest
(ctx context.Context, req *Request, response interface{})
http/client/simple_cilent.go:44
↓ 1 callersFunctionReadNoDataFromBufCh
场景1
channel/unblock_channel/block/read_buffer_block.go:10
↓ 1 callersFunctionReadNoDataFromBufChWithSelect
有缓冲通道读
channel/unblock_channel/select_timer_unblock.go:31
↓ 1 callersFunctionReadNoDataFromBufChWithSelect
有缓冲通道读
channel/unblock_channel/select_unblock.go:30
↓ 1 callersFunctionReadNoDataFromNoBufCh
场景1
channel/unblock_channel/block/read_unbuffer_block.go:10
↓ 1 callersFunctionReadNoDataFromNoBufChWithSelect
无缓冲通道读
channel/unblock_channel/select_timer_unblock.go:17
↓ 1 callersFunctionReadNoDataFromNoBufChWithSelect
无缓冲通道读
channel/unblock_channel/select_unblock.go:16
↓ 1 callersFunctionRegisterHelloServiceServer
(s *grpc.Server, srv HelloServiceServer)
grpc/server/hello.pb.go:243
↓ 1 callersFunctionSub
(b int)
first_class_function/03_high_order_func2_result.go:14
↓ 1 callersFunctionTestFast
()
problems/concurrent/once/once1.go:69
↓ 1 callersFunctionTestSlow
()
problems/concurrent/once/once1.go:60
↓ 1 callersFunctionTestunsafety
()
problems/concurrent/once/once1.go:51
↓ 1 callersFunctionTime2Date
()
date/main.go:26
↓ 1 callersFunctionTime2Timestamp
()
date/main.go:46
↓ 1 callersFunctionTimestamp2Time
()
date/main.go:37
↓ 1 callersMethodUpdate
(o Person)
struct/inline.go:35
↓ 1 callersMethodWithdraw
Withdraw 取款,不足时取款失败
channel_plus_sync/channel_map.go:99
↓ 1 callersMethodWithdraw
Withdraw 取款,返回实际取到的金额
sync_pkg/no_mutex.go:28
↓ 1 callersMethodWithdraw
Withdraw 取款,返回实际取到的金额
sync_pkg/mutex.go:33
↓ 1 callersMethodWithdraw
Withdraw 取款,返回实际取到的金额
sync_pkg/rwmutex.go:33
↓ 1 callersFunctionWriteBufChButFull
场景2
channel/unblock_channel/block/write_buufer_block.go:10
↓ 1 callersFunctionWriteBufChButFullWithSelect
有缓冲通道写
channel/unblock_channel/select_timer_unblock.go:70
↓ 1 callersFunctionWriteBufChButFullWithSelect
有缓冲通道写
channel/unblock_channel/select_unblock.go:67
↓ 1 callersMethodWriteMsg
(msg string)
first_class_function/host_v2/host/host.go:12
↓ 1 callersMethodWriteMsg
(msg string)
first_class_function/host_v1/host/host.go:14
↓ 1 callersFunctionWriteNoBufCh
场景2
channel/unblock_channel/block/write_unbuffer_block.go:10
↓ 1 callersFunctionWriteNoBufChWithSelect
无缓冲通道写
channel/unblock_channel/select_timer_unblock.go:57
↓ 1 callersFunctionWriteNoBufChWithSelect
无缓冲通道写
channel/unblock_channel/select_unblock.go:54
↓ 1 callersFunctionalloc1
(outCh chan<- int)
pprof/goroutine/leak_demo1.go:41
↓ 1 callersFunctionalloc2
(outCh chan<- int)
pprof/goroutine/leak_demo1.go:45
↓ 1 callersFunctionappendAndReduce
(buf []int)
slice/resize/demo.go:32
↓ 1 callersFunctionatom
(b *testing.B)
sync_atomic/atomic2_test.go:13
↓ 1 callersFunctionatomicTest
()
sync_atomic/atomic_test.go:71
↓ 1 callersFunctioncall
(o *Once)
problems/concurrent/once0.go:27
↓ 1 callersFunctioncanNotSetExample
增加recover
reflect/law_of_reflect/setable.go:30
↓ 1 callersFunctioncanSetExample
BUG, it shoule be failed and panic
reflect/law_of_reflect/setable.go:41
↓ 1 callersFunctionch
(b *testing.B)
sync_atomic/atomic2_test.go:36
↓ 1 callersFunctionchannelTest
()
sync_atomic/atomic_test.go:63
↓ 1 callersFunctionconsumer
consumer only read data from in channel and print it
golang_goroutine_exit/detect_close_channel/select.go:27
↓ 1 callersFunctionconsumer
consumer read data from in channel, print it, and print all proccess count in each second
golang_goroutine_exit/detect_close_channel_v2/select.go:28
↓ 1 callersFunctioncorrect
()
json/slice.go:13
↓ 1 callersFunctioneat
()
golang_select/select.go:7
↓ 1 callersFunctionexample1
()
slice/escape.go:15
↓ 1 callersFunctionexample2
()
slice/escape.go:25
↓ 1 callersFunctionexample3
()
slice/escape.go:33
↓ 1 callersFunctionexample4
()
slice/escape.go:42
↓ 1 callersFunctionf
()
problems/concurrent/happensbefore.go:6
↓ 1 callersFunctionfile_hello_proto_init
()
grpc/client/hello.pb.go:124
↓ 1 callersFunctionfile_hello_proto_init
()
grpc/server/hello.pb.go:124
↓ 1 callersFunctionfile_hello_proto_rawDescGZIP
()
grpc/client/hello.pb.go:100
↓ 1 callersFunctionfile_hello_proto_rawDescGZIP
()
grpc/server/hello.pb.go:100
↓ 1 callersFunctionfollower
(wg *sync.WaitGroup, id int)
sync_pkg/waitgroup.go:23
↓ 1 callersFunctiongenJob
(n int)
goroutine_pool/simple_goroutine_pool.go:20
↓ 1 callersFunctiongenJob
(n int)
sync_pkg/waitgroup_workerpool.go:18
↓ 1 callersFunctiongenMsg
()
defer/main.go:22
↓ 1 callersFunctioninitLogger
()
zap/level-main.go:15
↓ 1 callersMethodinject
(key string, obj interface{})
http/client/fake_server.go:17
↓ 1 callersFunctionleader
()
sync_pkg/waitgroup.go:12
↓ 1 callersMethodlist
()
unsafe/cast.go:80
↓ 1 callersMethodloop
()
sync_atomic/channel/host.go:29
↓ 1 callersMethodloop
()
first_class_function/host_v2/host/host.go:42
↓ 1 callersMethodloop
()
first_class_function/host_v3/host/host.go:40
↓ 1 callersFunctionmallocPuts
使用channel限制实际并发数
cgo/mem.go:33
↓ 1 callersFunctionmerge
(cs ...<-chan int)
golang_pipeline_step_by_step/hi_fan.go:34
↓ 1 callersFunctionmerge
(cs ...<-chan int)
golang_pipeline_step_by_step/hi_fan_example.go:31
↓ 1 callersFunctionmerge
(cs ...<-chan int)
golang_pipeline_step_by_step/optimize_fan_model/hi_fan.go:32
↓ 1 callersFunctionmerge
(cs ...<-chan int)
golang_pipeline_step_by_step/optimize_fan_model/hi_fan_buffered.go:32
↓ 1 callersFunctionmerge
(cs ...<-chan int)
golang_pipeline_step_by_step/optimize_fan_model/hi_fan_example.go:31
↓ 1 callersFunctionmerge
(cs ...<-chan int)
golang_pipeline_step_by_step/master/hi_fan.go:34
↓ 1 callersFunctionmerge
(cs ...<-chan int)
golang_pipeline_step_by_step/master/hi_fan_example.go:31
↓ 1 callersFunctionmerge
(cs ...<-chan int)
golang_pipeline_step_by_step/fan_model_slow/hi_fan.go:32
↓ 1 callersFunctionmerge
(cs ...<-chan int)
golang_pipeline_step_by_step/fan_model_slow/hi_fan_example.go:31
↓ 1 callersFunctionmute
(b *testing.B)
sync_atomic/atomic2_test.go:55
↓ 1 callersFunctionmutexTest
()
sync_atomic/atomic_test.go:53
↓ 1 callersFunctionnewInfoLogger
()
log/demo1-zlog.go:24
↓ 1 callersFunctionnewServer
()
http/client/fake_server.go:13
↓ 1 callersFunctionpprof
()
file/multi-write/main.go:33
↓ 1 callersFunctionproducer
(n int)
golang_goroutine_exit/detect_close_channel/select.go:8
↓ 1 callersFunctionproducer
(n int)
golang_goroutine_exit/detect_close_channel_v2/select.go:8
↓ 1 callersFunctionproducer
(n int)
golang_pipeline_step_by_step/hi_fan.go:9
↓ 1 callersFunctionproducer
(n int)
golang_pipeline_step_by_step/hi_simple.go:9
↓ 1 callersFunctionproducer
(nums ...int)
golang_pipeline_step_by_step/hi_fan_example.go:8
↓ 1 callersFunctionproducer
(n int)
golang_pipeline_step_by_step/optimize_fan_model/hi_fan.go:9
↓ 1 callersFunctionproducer
(n int)
golang_pipeline_step_by_step/optimize_fan_model/hi_simple.go:9
↓ 1 callersFunctionproducer
(n int)
golang_pipeline_step_by_step/optimize_fan_model/hi_fan_buffered.go:9
↓ 1 callersFunctionproducer
(nums ...int)
golang_pipeline_step_by_step/optimize_fan_model/hi_fan_example.go:8
← previousnext →101–200 of 617, ranked by callers