Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ScottAI/book
/ functions
Functions
226 in github.com/ScottAI/book
⨍
Functions
226
◇
Types & classes
40
↓ 6 callers
Method
Create
工作池的初始化
ch08/8.4/workpool.go:78
↓ 5 callers
Method
area
定义一个接收器为指针类型的方法
ch04/4.2/pointer/main.go:24
↓ 4 callers
Function
fb1
(n int)
ch06/6.3/test/testTest.go:3
↓ 4 callers
Function
fb2
(n int)
ch06/6.3/test/testTest.go:13
↓ 3 callers
Method
GetHelloMsg
创建第二个接口
ch13/13.3/grpc/protocol/hello.pb.go:183
↓ 3 callers
Method
MyPrint
()
ch04/4.3/adv/main.go:6
↓ 3 callers
Method
SayHello
创建第一个接口
ch13/13.3/grpc/protocol/hello.pb.go:181
↓ 3 callers
Function
print
(m map[string]int)
ch03/3.3/main.go:26
↓ 2 callers
Function
AddAgePlus
(pp *Person)
ch03/3.4/pointer/main.go:28
↓ 2 callers
Function
Chain
Chain applies middlewares to a http.HandlerFunc
ch09/9.4/adv/adv.go:86
↓ 2 callers
Function
Desc
* 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 callers
Function
GetAuthCode
Get user's auth code
ch09/9.4/adv/adv.go:14
↓ 2 callers
Function
Logging
Logging logs all requests with its path and the time it took to process
ch09/9.4/adv/adv.go:53
↓ 2 callers
Function
Method
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 callers
Function
Read
()
ch08/8.2/mutex/mutex.go:20
↓ 2 callers
Method
String
()
ch13/13.2/protocol/test.pb.go:37
↓ 2 callers
Function
checkError
(err error)
ch09/9.3/tcpServer/tcpServer.go:11
↓ 2 callers
Function
fb1
(n int)
ch06/6.3/bhmark/testBenchmark.go:5
↓ 2 callers
Function
fb2
(n int)
ch06/6.3/bhmark/testBenchmark.go:16
↓ 2 callers
Function
fb3
(n int)
ch06/6.3/bhmark/testBenchmark.go:23
↓ 2 callers
Function
print
(a ...interface{})
ch04/4.1/argu/main.go:26
↓ 2 callers
Function
runMEMTest
()
ch06/6.2/profile.go:84
↓ 2 callers
Function
sum
(a int,others ...int)
ch04/4.1/argu/main.go:19
↓ 1 callers
Function
AddAge
(p Person)
ch03/3.4/pointer/main.go:24
↓ 1 callers
Method
Area
()
ch04/4.3/base/myinterface.go:9
↓ 1 callers
Function
Benchmarkfb2
(b *testing.B,n int)
ch06/6.3/bhmark/testBenchmark_test.go:14
↓ 1 callers
Function
Benchmarkfb3
(b *testing.B,n int)
ch06/6.3/bhmark/testBenchmark_test.go:22
↓ 1 callers
Method
CompareStr
(xx X)
ch04/4.4/adv/main.go:19
↓ 1 callers
Function
EnsureAuth
Ensure user's auth
ch09/9.4/adv/adv.go:35
↓ 1 callers
Method
GetMessage
()
ch13/13.2/protocol/test.pb.go:79
↓ 1 callers
Method
GetName
()
ch13/13.3/grpc/protocol/hello.pb.go:59
↓ 1 callers
Function
HelloWorld
()
ch05/5.1/base/main.go:8
↓ 1 callers
Function
NewLogger
(handlerToWrap http.Handler)
ch09/9.4/basic/basicmiddle.go:19
↓ 1 callers
Function
NewScheduler
创建排程中心
ch08/8.4/workpool.go:72
↓ 1 callers
Function
NewWorker
(workerPool chan chan Job, id int)
ch08/8.4/workpool.go:28
↓ 1 callers
Method
Perimeter
()
ch04/4.3/base/myinterface.go:10
↓ 1 callers
Method
PrintTags
()
ch04/4.4/adv/main.go:30
↓ 1 callers
Function
Set
(i int)
ch08/8.2/mutex/mutex.go:14
↓ 1 callers
Method
Shutdown
工作池的关闭
ch08/8.4/workpool.go:90
↓ 1 callers
Function
Sing
(singerId int,c *sync.Cond)
ch08/8.2/cond/cond.go:14
↓ 1 callers
Method
Start
监听任务和结束信号
ch08/8.4/workpool.go:39
↓ 1 callers
Method
Stop
()
ch08/8.4/workpool.go:58
↓ 1 callers
Function
Sum
(a,b int)
ch06/6.3/example/testExam.go:3
↓ 1 callers
Function
area
定义一个矩形求面积的函数
ch04/4.2/base/main.go:14
↓ 1 callers
Method
area
定义一个矩形类型的方法
ch04/4.2/base/main.go:19
↓ 1 callers
Method
area
定义一个接收器为矩形类型的方法
ch04/4.2/extends/main.go:22
↓ 1 callers
Method
area2
定义一个接收器为矩形类型的方法
ch04/4.2/pointer/main.go:28
↓ 1 callers
Function
benchmarkfb1
(b *testing.B,n int)
ch06/6.3/bhmark/testBenchmark_test.go:6
↓ 1 callers
Function
connect
(c context.Context)
ch08/8.3/advanced/context.go:23
↓ 1 callers
Function
createJobQueue
创建模拟任务
ch08/8.4/workpool.go:127
↓ 1 callers
Function
double
()
ch04/4.1/clo/main.go:13
↓ 1 callers
Function
echo
3
ch09/9.3/websocket/ws.go:71
↓ 1 callers
Function
genRandom
(max,min int)
ch05/5.3/main.go:18
↓ 1 callers
Function
isTimeout
(wg *sync.WaitGroup,du time.Duration)
ch05/5.2/timeout2/main.go:27
↓ 1 callers
Function
moitor
()
ch08/race/datarace.go:15
↓ 1 callers
Function
nowtime
()
ch09/9.3/tcpServer/tcpServer.go:18
↓ 1 callers
Function
procmsg
()
ch06/6.2/profile.go:97
↓ 1 callers
Function
receive
(out chan<- int ,in <-chan int)
ch05/5.3/main.go:32
↓ 1 callers
Function
runcputest
()
ch06/6.2/profile.go:89
↓ 1 callers
Method
schedule
排程
ch08/8.4/workpool.go:100
↓ 1 callers
Function
selfPlus
(n int)
chapter01/1.2/pointer/main.go:16
↓ 1 callers
Function
selfPlusPointer
(n *int)
chapter01/1.2/pointer/main.go:12
↓ 1 callers
Function
sendRan
(max,min int,out chan<- int)
ch05/5.3/main.go:22
↓ 1 callers
Function
sendResponse
(conn *net.UDPConn, addr *net.UDPAddr)
ch09/9.3/udpServer/udpServer.go:7
↓ 1 callers
Function
sum
(in <-chan int)
ch05/5.3/main.go:47
↓ 1 callers
Function
swap
(a,b int)
ch04/4.1/argu/main.go:15
↓ 1 callers
Function
taskProcess
(tasks chan int,workerNo int)
ch05/5.2/buffer/main.go:34
↓ 1 callers
Function
testWCancel
(t int)
ch08/8.3/context.go:9
↓ 1 callers
Function
testWDeadline
(t int)
ch08/8.3/context.go:26
↓ 1 callers
Function
testWTimeout
(t int)
ch08/8.3/context.go:44
↓ 1 callers
Function
worcker
(id int,jobs <- chan int,results chan <- int)
ch08/8.4/simple/workpool.go:8
↓ 1 callers
Function
writeChan
(c chan int ,x int)
ch05/5.2/write/main.go:14
↓ 1 callers
Function
writeChan
(c chan int,x int)
ch05/5.2/read/main.go:20
↓ 1 callers
Function
writer
(mess *Message)
ch09/9.3/websocket/ws.go:45
Method
Area
()
ch04/4.3/base/myinterface.go:21
Method
Area
()
ch04/4.3/base/myinterface.go:28
Function
Auth
(w http.ResponseWriter, r *http.Request)
ch09/9.4/adv/adv.go:96
Function
Benchmark50fb1
(b *testing.B)
ch06/6.3/bhmark/testBenchmark_test.go:30
Function
Benchmark50fb2
(b *testing.B)
ch06/6.3/bhmark/testBenchmark_test.go:34
Function
Benchmark50fb3
(b *testing.B)
ch06/6.3/bhmark/testBenchmark_test.go:38
Function
Change
(p *pass,pwd string)
ch08/8.2/RWMutex/rwmutex.go:15
Function
ChangeByDelta
(d int)
ch08/race/datarace.go:9
Function
CurrentTimeHandler
(w http.ResponseWriter, r *http.Request)
ch09/9.4/nomiddle.go:14
Function
CurrentTimeHandler
(w http.ResponseWriter, r *http.Request)
ch09/9.4/basic/basicmiddle.go:26
Method
Descriptor
()
ch13/13.2/protocol/test.pb.go:57
Method
Descriptor
()
ch13/13.3/grpc/protocol/hello.pb.go:37
Method
Descriptor
()
ch13/13.3/grpc/protocol/hello.pb.go:76
Method
Descriptor
()
ch13/13.3/grpc/protocol/hello.pb.go:115
Method
EnumDescriptor
()
ch13/13.2/protocol/test.pb.go:41
Function
ExampleSum
()
ch06/6.3/example/exam_test.go:7
Method
GetHelloMsg
(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption)
ch13/13.3/grpc/protocol/hello.pb.go:203
Method
GetHelloMsg
创建第二个接口
ch13/13.3/grpc/protocol/hello.pb.go:217
Method
GetHelloMsg
(ctx context.Context, req *HelloRequest)
ch13/13.3/grpc/protocol/hello.pb.go:227
Method
GetHelloMsg
实现RPC GetHelloMsg 接口
ch13/13.3/grpc/server/server.go:19
Method
GetLength
()
ch13/13.2/protocol/test.pb.go:86
Method
GetLine
(line []byte, ack *bool)
ch13/13.3/rpc/server/server.go:12
Method
GetMessage
()
ch13/13.3/grpc/protocol/hello.pb.go:98
Method
GetMsg
()
ch13/13.3/grpc/protocol/hello.pb.go:137
Function
GetNumber
()
ch08/race/datarace.go:12
Function
Hello
(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
ch09/9.2/httprouter.go:14
next →
1–100 of 226, ranked by callers