Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/armstrongli/learn.go
/ functions
Functions
644 in github.com/armstrongli/learn.go
⨍
Functions
644
◇
Types & classes
133
Function
TestCase3
(t *testing.T)
chapter03/003.tdd/main_test.go:88
Function
TestChanPutGet
(t *testing.T)
chapter06/12.channel-def-use/channel_test.go:24
Function
TestChanPutGet2_OFirst_withBuffer
out 先启动,in后续启动 结果:
chapter06/12.channel-def-use/channel_test.go:123
Function
TestChanPutGet2_Owait
这是一个让out部分等待一段时间再取数据,来观察i的行为 结果:如果没有out,那么in部分会等待,直到有out开始
chapter06/12.channel-def-use/channel_test.go:45
Function
TestChanPutGet2_Owait_withBuffer
这是一个让out部分等待一段时间再取数据,来观察i的行为 结果:带有buffer的会直接允许in,不影响out
chapter06/12.channel-def-use/channel_test.go:71
Function
TestChanPutGet2_Owait_withSmallBuffer
这是一个让out部分等待一段时间再取数据,来观察i的行为 结果:
chapter06/12.channel-def-use/channel_test.go:97
Function
TestDecode
(t *testing.T)
chapter13/03.grpc-attention/main_test.go:12
Function
TestDefChannel
(t *testing.T)
chapter06/12.channel-def-use/channel_test.go:9
Function
TestDualCloseChannel
(t *testing.T)
chapter06/12.channel-def-use/channel_test.go:316
Function
TestForLoop
(t *testing.T)
chapter06/02.prime/prime_test.go:96
Function
TestForeverGoroutine
(t *testing.T)
chapter06/02.prime/prime_test.go:110
Function
TestFrServiceSuggestion
(t *testing.T)
chapter05/05-fatrate/frservice_test.go:7
Function
TestHelloGoroutine
(t *testing.T)
chapter06/02.prime/prime_test.go:87
Function
TestHelloGoroutine2
(t *testing.T)
chapter06/02.prime/prime_test.go:91
Function
TestList
(t *testing.T)
pkg/dockertool/list_test.go:10
Function
TestMap
(t *testing.T)
chapter06/03.lock/map_test.go:9
Function
TestMarshalJson
(t *testing.T)
pkg/apis/types_test.go:15
Function
TestMarshalProtobuf
(t *testing.T)
pkg/apis/types_test.go:95
Function
TestMarshalYaml
(t *testing.T)
pkg/apis/types_test.go:42
Function
TestMarshalYamlSpecial
(t *testing.T)
pkg/apis/types_test.go:75
Function
TestMultipleChannelReadySelect
(t *testing.T)
chapter06/12.channel-def-use/channel_test.go:345
Function
TestMultipleSelect
(t *testing.T)
chapter06/12.channel-def-use/channel_test.go:298
Function
TestOutonly
(t *testing.T)
chapter06/12.channel-def-use/channel_test.go:334
Function
TestPut2ClosedChannel
(t *testing.T)
chapter06/12.channel-def-use/channel_test.go:322
Function
TestRangeChannel
range 没有 close 的话,在去除所有数据后 panic deadlock
chapter06/12.channel-def-use/channel_test.go:147
Function
TestRangeClosedChannel
(t *testing.T)
chapter06/12.channel-def-use/channel_test.go:160
Function
TestRun
(t *testing.T)
pkg/dockertool/run_test.go:10
Function
TestRunPrime
(t *testing.T)
chapter06/02.prime/prime_test.go:11
Function
TestRunPrime2
(t *testing.T)
chapter06/02.prime/prime_test.go:35
Function
TestRunPrime3
(t *testing.T)
chapter06/02.prime/prime_test.go:54
Function
TestSelectChannel
当所有的channel不ready的时候,select会等待,直到某个channel ready
chapter06/12.channel-def-use/channel_test.go:186
Function
TestSelectChannelWithDefault
default 直接运行
chapter06/12.channel-def-use/channel_test.go:212
Function
TestSelectChannelWithDefaultAndChannelReady
case的优先级高于default。只要有case中的channel ready,default不会走的
chapter06/12.channel-def-use/channel_test.go:240
Function
TestSelectChannelWithDefaultAndClosedChannel
closed channel 在select的时候总是可用。
chapter06/12.channel-def-use/channel_test.go:269
Function
TestSingleGoroutineApp
(t *testing.T)
chapter06/12.channel-def-use/channel_test.go:339
Function
TestUnmarshalJson
(t *testing.T)
pkg/apis/types_test.go:35
Function
TestUnmarshalYaml
(t *testing.T)
pkg/apis/types_test.go:62
Function
TestVal
(t *testing.T)
chapter05/03.legend/change_test.go:26
Function
TestWebServerV1
(t *testing.T)
chapter06/10.lockless/v1server_test.go:10
Function
TestWebServerV2
(t *testing.T)
chapter06/10.lockless/v2server_test.go:10
Function
TestWithDirection
(t *testing.T)
chapter06/14.channel-with-direction/direction_test.go:7
Function
Test_fatRateSuggestion_GetSuggestion
(t *testing.T)
chapter04/04-fatrate/suggestion_test.go:7
Function
Test_fatRateSuggestion_GetSuggestion
(t *testing.T)
chapter05/05-fatrate/suggestion_test.go:7
Function
Test_fatRateSuggestion_GetSuggestion1
(t *testing.T)
chapter04/04-fatrate/suggestion_test.go:21
Function
Test_fatRateSuggestion_GetSuggestion1
(t *testing.T)
chapter05/05-fatrate/suggestion_test.go:21
Method
Unlock
()
chapter05/04.thetrap/doorWood.go:11
Method
Unlock
()
chapter05/04.thetrap/doorGlass.go:11
Method
Update
(ctx context.Context, in *PersonalInformation, opts ...grpc.CallOption)
pkg/apis/types.pb.go:370
Method
Update
(context.Context, *PersonalInformation)
pkg/apis/types.pb.go:466
Method
Update
(context context2.Context, information *apis.PersonalInformation)
chapter13/02.grpc/server/rank-service.go:19
Method
UpdatePersonalInformation
(pi *apis.PersonalInformation)
chapter12/03.gin/03.practice/server/rank.go:38
Method
UpdatePersonalInformation
(pi *apis.PersonalInformation)
chapter12/03.gin/03.practice/server/dbrank.go:63
Method
UpdatePersonalInformation
(pi *apis.PersonalInformation)
chapter12/02.practice/server/rank.go:38
Method
UpdatePersonalInformation
(pi *apis.PersonalInformation)
chapter13/02.grpc/server/ranks/rank.go:38
Method
WatchPersons
(ctx context.Context, in *Null, opts ...grpc.CallOption)
pkg/apis/types.pb.go:431
Method
WatchPersons
(*Null, RankService_WatchPersonsServer)
pkg/apis/types.pb.go:470
Method
WatchPersons
(null *apis.Null, server apis.RankService_WatchPersonsServer)
chapter13/02.grpc/server/rank-service.go:42
Method
XXX_DiscardUnknown
()
pkg/apis/types.pb.go:50
Method
XXX_DiscardUnknown
()
pkg/apis/types.pb.go:81
Method
XXX_DiscardUnknown
()
pkg/apis/types.pb.go:122
Method
XXX_DiscardUnknown
()
pkg/apis/types.pb.go:182
Method
XXX_DiscardUnknown
()
pkg/apis/types.pb.go:227
Method
XXX_DiscardUnknown
()
pkg/apis/types.pb.go:276
Method
XXX_DiscardUnknown
()
chapter13/03.grpc-attention/types.pb.go:58
Method
XXX_Marshal
(b []byte, deterministic bool)
pkg/apis/types.pb.go:41
Method
XXX_Marshal
(b []byte, deterministic bool)
pkg/apis/types.pb.go:72
Method
XXX_Marshal
(b []byte, deterministic bool)
pkg/apis/types.pb.go:113
Method
XXX_Marshal
(b []byte, deterministic bool)
pkg/apis/types.pb.go:173
Method
XXX_Marshal
(b []byte, deterministic bool)
pkg/apis/types.pb.go:218
Method
XXX_Marshal
(b []byte, deterministic bool)
pkg/apis/types.pb.go:267
Method
XXX_Marshal
(b []byte, deterministic bool)
chapter13/03.grpc-attention/types.pb.go:49
Method
XXX_Merge
(src proto.Message)
pkg/apis/types.pb.go:44
Method
XXX_Merge
(src proto.Message)
pkg/apis/types.pb.go:75
Method
XXX_Merge
(src proto.Message)
pkg/apis/types.pb.go:116
Method
XXX_Merge
(src proto.Message)
pkg/apis/types.pb.go:176
Method
XXX_Merge
(src proto.Message)
pkg/apis/types.pb.go:221
Method
XXX_Merge
(src proto.Message)
pkg/apis/types.pb.go:270
Method
XXX_Merge
(src proto.Message)
chapter13/03.grpc-attention/types.pb.go:52
Method
XXX_Size
()
pkg/apis/types.pb.go:47
Method
XXX_Size
()
pkg/apis/types.pb.go:78
Method
XXX_Size
()
pkg/apis/types.pb.go:119
Method
XXX_Size
()
pkg/apis/types.pb.go:179
Method
XXX_Size
()
pkg/apis/types.pb.go:224
Method
XXX_Size
()
pkg/apis/types.pb.go:273
Method
XXX_Size
()
chapter13/03.grpc-attention/types.pb.go:55
Method
XXX_Unmarshal
(b []byte)
pkg/apis/types.pb.go:38
Method
XXX_Unmarshal
(b []byte)
pkg/apis/types.pb.go:69
Method
XXX_Unmarshal
(b []byte)
pkg/apis/types.pb.go:110
Method
XXX_Unmarshal
(b []byte)
pkg/apis/types.pb.go:170
Method
XXX_Unmarshal
(b []byte)
pkg/apis/types.pb.go:215
Method
XXX_Unmarshal
(b []byte)
pkg/apis/types.pb.go:264
Method
XXX_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
Function
buildTree
()
chapter07/11.tree.search/main.go:15
Function
calcBMI
(tall float64, weight float64)
chapter02/014.func.def/main.go:27
← previous
next →
401–500 of 644, ranked by callers