MCPcopy Create free account

hub / github.com/armstrongli/learn.go / functions

Functions644 in github.com/armstrongli/learn.go

FunctionTestCase3
(t *testing.T)
chapter03/003.tdd/main_test.go:88
FunctionTestChanPutGet
(t *testing.T)
chapter06/12.channel-def-use/channel_test.go:24
FunctionTestChanPutGet2_OFirst_withBuffer
out 先启动,in后续启动 结果:
chapter06/12.channel-def-use/channel_test.go:123
FunctionTestChanPutGet2_Owait
这是一个让out部分等待一段时间再取数据,来观察i的行为 结果:如果没有out,那么in部分会等待,直到有out开始
chapter06/12.channel-def-use/channel_test.go:45
FunctionTestChanPutGet2_Owait_withBuffer
这是一个让out部分等待一段时间再取数据,来观察i的行为 结果:带有buffer的会直接允许in,不影响out
chapter06/12.channel-def-use/channel_test.go:71
FunctionTestChanPutGet2_Owait_withSmallBuffer
这是一个让out部分等待一段时间再取数据,来观察i的行为 结果:
chapter06/12.channel-def-use/channel_test.go:97
FunctionTestDecode
(t *testing.T)
chapter13/03.grpc-attention/main_test.go:12
FunctionTestDefChannel
(t *testing.T)
chapter06/12.channel-def-use/channel_test.go:9
FunctionTestDualCloseChannel
(t *testing.T)
chapter06/12.channel-def-use/channel_test.go:316
FunctionTestForLoop
(t *testing.T)
chapter06/02.prime/prime_test.go:96
FunctionTestForeverGoroutine
(t *testing.T)
chapter06/02.prime/prime_test.go:110
FunctionTestFrServiceSuggestion
(t *testing.T)
chapter05/05-fatrate/frservice_test.go:7
FunctionTestHelloGoroutine
(t *testing.T)
chapter06/02.prime/prime_test.go:87
FunctionTestHelloGoroutine2
(t *testing.T)
chapter06/02.prime/prime_test.go:91
FunctionTestList
(t *testing.T)
pkg/dockertool/list_test.go:10
FunctionTestMap
(t *testing.T)
chapter06/03.lock/map_test.go:9
FunctionTestMarshalJson
(t *testing.T)
pkg/apis/types_test.go:15
FunctionTestMarshalProtobuf
(t *testing.T)
pkg/apis/types_test.go:95
FunctionTestMarshalYaml
(t *testing.T)
pkg/apis/types_test.go:42
FunctionTestMarshalYamlSpecial
(t *testing.T)
pkg/apis/types_test.go:75
FunctionTestMultipleChannelReadySelect
(t *testing.T)
chapter06/12.channel-def-use/channel_test.go:345
FunctionTestMultipleSelect
(t *testing.T)
chapter06/12.channel-def-use/channel_test.go:298
FunctionTestOutonly
(t *testing.T)
chapter06/12.channel-def-use/channel_test.go:334
FunctionTestPut2ClosedChannel
(t *testing.T)
chapter06/12.channel-def-use/channel_test.go:322
FunctionTestRangeChannel
range 没有 close 的话,在去除所有数据后 panic deadlock
chapter06/12.channel-def-use/channel_test.go:147
FunctionTestRangeClosedChannel
(t *testing.T)
chapter06/12.channel-def-use/channel_test.go:160
FunctionTestRun
(t *testing.T)
pkg/dockertool/run_test.go:10
FunctionTestRunPrime
(t *testing.T)
chapter06/02.prime/prime_test.go:11
FunctionTestRunPrime2
(t *testing.T)
chapter06/02.prime/prime_test.go:35
FunctionTestRunPrime3
(t *testing.T)
chapter06/02.prime/prime_test.go:54
FunctionTestSelectChannel
当所有的channel不ready的时候,select会等待,直到某个channel ready
chapter06/12.channel-def-use/channel_test.go:186
FunctionTestSelectChannelWithDefault
default 直接运行
chapter06/12.channel-def-use/channel_test.go:212
FunctionTestSelectChannelWithDefaultAndChannelReady
case的优先级高于default。只要有case中的channel ready,default不会走的
chapter06/12.channel-def-use/channel_test.go:240
FunctionTestSelectChannelWithDefaultAndClosedChannel
closed channel 在select的时候总是可用。
chapter06/12.channel-def-use/channel_test.go:269
FunctionTestSingleGoroutineApp
(t *testing.T)
chapter06/12.channel-def-use/channel_test.go:339
FunctionTestUnmarshalJson
(t *testing.T)
pkg/apis/types_test.go:35
FunctionTestUnmarshalYaml
(t *testing.T)
pkg/apis/types_test.go:62
FunctionTestVal
(t *testing.T)
chapter05/03.legend/change_test.go:26
FunctionTestWebServerV1
(t *testing.T)
chapter06/10.lockless/v1server_test.go:10
FunctionTestWebServerV2
(t *testing.T)
chapter06/10.lockless/v2server_test.go:10
FunctionTestWithDirection
(t *testing.T)
chapter06/14.channel-with-direction/direction_test.go:7
FunctionTest_fatRateSuggestion_GetSuggestion
(t *testing.T)
chapter04/04-fatrate/suggestion_test.go:7
FunctionTest_fatRateSuggestion_GetSuggestion
(t *testing.T)
chapter05/05-fatrate/suggestion_test.go:7
FunctionTest_fatRateSuggestion_GetSuggestion1
(t *testing.T)
chapter04/04-fatrate/suggestion_test.go:21
FunctionTest_fatRateSuggestion_GetSuggestion1
(t *testing.T)
chapter05/05-fatrate/suggestion_test.go:21
MethodUnlock
()
chapter05/04.thetrap/doorWood.go:11
MethodUnlock
()
chapter05/04.thetrap/doorGlass.go:11
MethodUpdate
(ctx context.Context, in *PersonalInformation, opts ...grpc.CallOption)
pkg/apis/types.pb.go:370
MethodUpdate
(context.Context, *PersonalInformation)
pkg/apis/types.pb.go:466
MethodUpdate
(context context2.Context, information *apis.PersonalInformation)
chapter13/02.grpc/server/rank-service.go:19
MethodUpdatePersonalInformation
(pi *apis.PersonalInformation)
chapter12/03.gin/03.practice/server/rank.go:38
MethodUpdatePersonalInformation
(pi *apis.PersonalInformation)
chapter12/03.gin/03.practice/server/dbrank.go:63
MethodUpdatePersonalInformation
(pi *apis.PersonalInformation)
chapter12/02.practice/server/rank.go:38
MethodUpdatePersonalInformation
(pi *apis.PersonalInformation)
chapter13/02.grpc/server/ranks/rank.go:38
MethodWatchPersons
(ctx context.Context, in *Null, opts ...grpc.CallOption)
pkg/apis/types.pb.go:431
MethodWatchPersons
(*Null, RankService_WatchPersonsServer)
pkg/apis/types.pb.go:470
MethodWatchPersons
(null *apis.Null, server apis.RankService_WatchPersonsServer)
chapter13/02.grpc/server/rank-service.go:42
MethodXXX_DiscardUnknown
()
pkg/apis/types.pb.go:50
MethodXXX_DiscardUnknown
()
pkg/apis/types.pb.go:81
MethodXXX_DiscardUnknown
()
pkg/apis/types.pb.go:122
MethodXXX_DiscardUnknown
()
pkg/apis/types.pb.go:182
MethodXXX_DiscardUnknown
()
pkg/apis/types.pb.go:227
MethodXXX_DiscardUnknown
()
pkg/apis/types.pb.go:276
MethodXXX_DiscardUnknown
()
chapter13/03.grpc-attention/types.pb.go:58
MethodXXX_Marshal
(b []byte, deterministic bool)
pkg/apis/types.pb.go:41
MethodXXX_Marshal
(b []byte, deterministic bool)
pkg/apis/types.pb.go:72
MethodXXX_Marshal
(b []byte, deterministic bool)
pkg/apis/types.pb.go:113
MethodXXX_Marshal
(b []byte, deterministic bool)
pkg/apis/types.pb.go:173
MethodXXX_Marshal
(b []byte, deterministic bool)
pkg/apis/types.pb.go:218
MethodXXX_Marshal
(b []byte, deterministic bool)
pkg/apis/types.pb.go:267
MethodXXX_Marshal
(b []byte, deterministic bool)
chapter13/03.grpc-attention/types.pb.go:49
MethodXXX_Merge
(src proto.Message)
pkg/apis/types.pb.go:44
MethodXXX_Merge
(src proto.Message)
pkg/apis/types.pb.go:75
MethodXXX_Merge
(src proto.Message)
pkg/apis/types.pb.go:116
MethodXXX_Merge
(src proto.Message)
pkg/apis/types.pb.go:176
MethodXXX_Merge
(src proto.Message)
pkg/apis/types.pb.go:221
MethodXXX_Merge
(src proto.Message)
pkg/apis/types.pb.go:270
MethodXXX_Merge
(src proto.Message)
chapter13/03.grpc-attention/types.pb.go:52
MethodXXX_Size
()
pkg/apis/types.pb.go:47
MethodXXX_Size
()
pkg/apis/types.pb.go:78
MethodXXX_Size
()
pkg/apis/types.pb.go:119
MethodXXX_Size
()
pkg/apis/types.pb.go:179
MethodXXX_Size
()
pkg/apis/types.pb.go:224
MethodXXX_Size
()
pkg/apis/types.pb.go:273
MethodXXX_Size
()
chapter13/03.grpc-attention/types.pb.go:55
MethodXXX_Unmarshal
(b []byte)
pkg/apis/types.pb.go:38
MethodXXX_Unmarshal
(b []byte)
pkg/apis/types.pb.go:69
MethodXXX_Unmarshal
(b []byte)
pkg/apis/types.pb.go:110
MethodXXX_Unmarshal
(b []byte)
pkg/apis/types.pb.go:170
MethodXXX_Unmarshal
(b []byte)
pkg/apis/types.pb.go:215
MethodXXX_Unmarshal
(b []byte)
pkg/apis/types.pb.go:264
MethodXXX_Unmarshal
(b []byte)
chapter13/03.grpc-attention/types.pb.go:46
Function_RankService_GetFatRate_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
pkg/apis/types.pb.go:513
Function_RankService_GetTop_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
pkg/apis/types.pb.go:531
Function_RankService_RegisterPersons_Handler
(srv interface{}, stream grpc.ServerStream)
pkg/apis/types.pb.go:549
Function_RankService_Register_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
pkg/apis/types.pb.go:477
Function_RankService_Update_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
pkg/apis/types.pb.go:495
Function_RankService_WatchPersons_Handler
(srv interface{}, stream grpc.ServerStream)
pkg/apis/types.pb.go:575
FunctionbuildTree
()
chapter07/11.tree.search/main.go:15
FunctioncalcBMI
(tall float64, weight float64)
chapter02/014.func.def/main.go:27
← previousnext →401–500 of 644, ranked by callers