MCPcopy Create free account

hub / github.com/ScottAI/book / functions

Functions226 in github.com/ScottAI/book

↓ 6 callersMethodCreate
工作池的初始化
ch08/8.4/workpool.go:78
↓ 5 callersMethodarea
定义一个接收器为指针类型的方法
ch04/4.2/pointer/main.go:24
↓ 4 callersFunctionfb1
(n int)
ch06/6.3/test/testTest.go:3
↓ 4 callersFunctionfb2
(n int)
ch06/6.3/test/testTest.go:13
↓ 3 callersMethodGetHelloMsg
创建第二个接口
ch13/13.3/grpc/protocol/hello.pb.go:183
↓ 3 callersMethodMyPrint
()
ch04/4.3/adv/main.go:6
↓ 3 callersMethodSayHello
创建第一个接口
ch13/13.3/grpc/protocol/hello.pb.go:181
↓ 3 callersFunctionprint
(m map[string]int)
ch03/3.3/main.go:26
↓ 2 callersFunctionAddAgePlus
(pp *Person)
ch03/3.4/pointer/main.go:28
↓ 2 callersFunctionChain
Chain applies middlewares to a http.HandlerFunc
ch09/9.4/adv/adv.go:86
↓ 2 callersFunctionDesc
* func Desc(s ShapeDesc) { _,ok := s.(circle) if ok{ fmt.Println("This is circle.") } _,ok = s.(rectangle) if ok{ fmt.Println("This is recta
ch04/4.3/base/myinterface.go:56
↓ 2 callersFunctionGetAuthCode
Get user's auth code
ch09/9.4/adv/adv.go:14
↓ 2 callersFunctionLogging
Logging logs all requests with its path and the time it took to process
ch09/9.4/adv/adv.go:53
↓ 2 callersFunctionMethod
Method ensures that url can only be requested with a specific method, else returns a 400 Bad Request
ch09/9.4/adv/adv.go:66
↓ 2 callersFunctionRead
()
ch08/8.2/mutex/mutex.go:20
↓ 2 callersMethodString
()
ch13/13.2/protocol/test.pb.go:37
↓ 2 callersFunctioncheckError
(err error)
ch09/9.3/tcpServer/tcpServer.go:11
↓ 2 callersFunctionfb1
(n int)
ch06/6.3/bhmark/testBenchmark.go:5
↓ 2 callersFunctionfb2
(n int)
ch06/6.3/bhmark/testBenchmark.go:16
↓ 2 callersFunctionfb3
(n int)
ch06/6.3/bhmark/testBenchmark.go:23
↓ 2 callersFunctionprint
(a ...interface{})
ch04/4.1/argu/main.go:26
↓ 2 callersFunctionrunMEMTest
()
ch06/6.2/profile.go:84
↓ 2 callersFunctionsum
(a int,others ...int)
ch04/4.1/argu/main.go:19
↓ 1 callersFunctionAddAge
(p Person)
ch03/3.4/pointer/main.go:24
↓ 1 callersMethodArea
()
ch04/4.3/base/myinterface.go:9
↓ 1 callersFunctionBenchmarkfb2
(b *testing.B,n int)
ch06/6.3/bhmark/testBenchmark_test.go:14
↓ 1 callersFunctionBenchmarkfb3
(b *testing.B,n int)
ch06/6.3/bhmark/testBenchmark_test.go:22
↓ 1 callersMethodCompareStr
(xx X)
ch04/4.4/adv/main.go:19
↓ 1 callersFunctionEnsureAuth
Ensure user's auth
ch09/9.4/adv/adv.go:35
↓ 1 callersMethodGetMessage
()
ch13/13.2/protocol/test.pb.go:79
↓ 1 callersMethodGetName
()
ch13/13.3/grpc/protocol/hello.pb.go:59
↓ 1 callersFunctionHelloWorld
()
ch05/5.1/base/main.go:8
↓ 1 callersFunctionNewLogger
(handlerToWrap http.Handler)
ch09/9.4/basic/basicmiddle.go:19
↓ 1 callersFunctionNewScheduler
创建排程中心
ch08/8.4/workpool.go:72
↓ 1 callersFunctionNewWorker
(workerPool chan chan Job, id int)
ch08/8.4/workpool.go:28
↓ 1 callersMethodPerimeter
()
ch04/4.3/base/myinterface.go:10
↓ 1 callersMethodPrintTags
()
ch04/4.4/adv/main.go:30
↓ 1 callersFunctionSet
(i int)
ch08/8.2/mutex/mutex.go:14
↓ 1 callersMethodShutdown
工作池的关闭
ch08/8.4/workpool.go:90
↓ 1 callersFunctionSing
(singerId int,c *sync.Cond)
ch08/8.2/cond/cond.go:14
↓ 1 callersMethodStart
监听任务和结束信号
ch08/8.4/workpool.go:39
↓ 1 callersMethodStop
()
ch08/8.4/workpool.go:58
↓ 1 callersFunctionSum
(a,b int)
ch06/6.3/example/testExam.go:3
↓ 1 callersFunctionarea
定义一个矩形求面积的函数
ch04/4.2/base/main.go:14
↓ 1 callersMethodarea
定义一个矩形类型的方法
ch04/4.2/base/main.go:19
↓ 1 callersMethodarea
定义一个接收器为矩形类型的方法
ch04/4.2/extends/main.go:22
↓ 1 callersMethodarea2
定义一个接收器为矩形类型的方法
ch04/4.2/pointer/main.go:28
↓ 1 callersFunctionbenchmarkfb1
(b *testing.B,n int)
ch06/6.3/bhmark/testBenchmark_test.go:6
↓ 1 callersFunctionconnect
(c context.Context)
ch08/8.3/advanced/context.go:23
↓ 1 callersFunctioncreateJobQueue
创建模拟任务
ch08/8.4/workpool.go:127
↓ 1 callersFunctiondouble
()
ch04/4.1/clo/main.go:13
↓ 1 callersFunctionecho
3
ch09/9.3/websocket/ws.go:71
↓ 1 callersFunctiongenRandom
(max,min int)
ch05/5.3/main.go:18
↓ 1 callersFunctionisTimeout
(wg *sync.WaitGroup,du time.Duration)
ch05/5.2/timeout2/main.go:27
↓ 1 callersFunctionmoitor
()
ch08/race/datarace.go:15
↓ 1 callersFunctionnowtime
()
ch09/9.3/tcpServer/tcpServer.go:18
↓ 1 callersFunctionprocmsg
()
ch06/6.2/profile.go:97
↓ 1 callersFunctionreceive
(out chan<- int ,in <-chan int)
ch05/5.3/main.go:32
↓ 1 callersFunctionruncputest
()
ch06/6.2/profile.go:89
↓ 1 callersMethodschedule
排程
ch08/8.4/workpool.go:100
↓ 1 callersFunctionselfPlus
(n int)
chapter01/1.2/pointer/main.go:16
↓ 1 callersFunctionselfPlusPointer
(n *int)
chapter01/1.2/pointer/main.go:12
↓ 1 callersFunctionsendRan
(max,min int,out chan<- int)
ch05/5.3/main.go:22
↓ 1 callersFunctionsendResponse
(conn *net.UDPConn, addr *net.UDPAddr)
ch09/9.3/udpServer/udpServer.go:7
↓ 1 callersFunctionsum
(in <-chan int)
ch05/5.3/main.go:47
↓ 1 callersFunctionswap
(a,b int)
ch04/4.1/argu/main.go:15
↓ 1 callersFunctiontaskProcess
(tasks chan int,workerNo int)
ch05/5.2/buffer/main.go:34
↓ 1 callersFunctiontestWCancel
(t int)
ch08/8.3/context.go:9
↓ 1 callersFunctiontestWDeadline
(t int)
ch08/8.3/context.go:26
↓ 1 callersFunctiontestWTimeout
(t int)
ch08/8.3/context.go:44
↓ 1 callersFunctionworcker
(id int,jobs <- chan int,results chan <- int)
ch08/8.4/simple/workpool.go:8
↓ 1 callersFunctionwriteChan
(c chan int ,x int)
ch05/5.2/write/main.go:14
↓ 1 callersFunctionwriteChan
(c chan int,x int)
ch05/5.2/read/main.go:20
↓ 1 callersFunctionwriter
(mess *Message)
ch09/9.3/websocket/ws.go:45
MethodArea
()
ch04/4.3/base/myinterface.go:21
MethodArea
()
ch04/4.3/base/myinterface.go:28
FunctionAuth
(w http.ResponseWriter, r *http.Request)
ch09/9.4/adv/adv.go:96
FunctionBenchmark50fb1
(b *testing.B)
ch06/6.3/bhmark/testBenchmark_test.go:30
FunctionBenchmark50fb2
(b *testing.B)
ch06/6.3/bhmark/testBenchmark_test.go:34
FunctionBenchmark50fb3
(b *testing.B)
ch06/6.3/bhmark/testBenchmark_test.go:38
FunctionChange
(p *pass,pwd string)
ch08/8.2/RWMutex/rwmutex.go:15
FunctionChangeByDelta
(d int)
ch08/race/datarace.go:9
FunctionCurrentTimeHandler
(w http.ResponseWriter, r *http.Request)
ch09/9.4/nomiddle.go:14
FunctionCurrentTimeHandler
(w http.ResponseWriter, r *http.Request)
ch09/9.4/basic/basicmiddle.go:26
MethodDescriptor
()
ch13/13.2/protocol/test.pb.go:57
MethodDescriptor
()
ch13/13.3/grpc/protocol/hello.pb.go:37
MethodDescriptor
()
ch13/13.3/grpc/protocol/hello.pb.go:76
MethodDescriptor
()
ch13/13.3/grpc/protocol/hello.pb.go:115
MethodEnumDescriptor
()
ch13/13.2/protocol/test.pb.go:41
FunctionExampleSum
()
ch06/6.3/example/exam_test.go:7
MethodGetHelloMsg
(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption)
ch13/13.3/grpc/protocol/hello.pb.go:203
MethodGetHelloMsg
创建第二个接口
ch13/13.3/grpc/protocol/hello.pb.go:217
MethodGetHelloMsg
(ctx context.Context, req *HelloRequest)
ch13/13.3/grpc/protocol/hello.pb.go:227
MethodGetHelloMsg
实现RPC GetHelloMsg 接口
ch13/13.3/grpc/server/server.go:19
MethodGetLength
()
ch13/13.2/protocol/test.pb.go:86
MethodGetLine
(line []byte, ack *bool)
ch13/13.3/rpc/server/server.go:12
MethodGetMessage
()
ch13/13.3/grpc/protocol/hello.pb.go:98
MethodGetMsg
()
ch13/13.3/grpc/protocol/hello.pb.go:137
FunctionGetNumber
()
ch08/race/datarace.go:12
FunctionHello
(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
ch09/9.2/httprouter.go:14
next →1–100 of 226, ranked by callers