Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Mastering-Go-Second-Edition
/ functions
Functions
639 in github.com/PacktPublishing/Mastering-Go-Second-Edition
⨍
Functions
639
◇
Types & classes
83
↓ 1 callers
Function
random
(min, max int)
ch09/pipeline.go:15
↓ 1 callers
Function
random
(min, max int)
ch05/randomNumbers.go:11
↓ 1 callers
Function
random
(min, max int)
ch05/divMat.go:12
↓ 1 callers
Function
random
(min, max int)
ch05/mulMat.go:12
↓ 1 callers
Function
random
(min, max int)
ch05/generatePassword.go:11
↓ 1 callers
Function
random
(min, max int)
ch10/slowWWW.go:11
↓ 1 callers
Function
random
(min, max int)
ch11/writingBU.go:13
↓ 1 callers
Function
random
(min, max int)
ch14/writeKafka.go:19
↓ 1 callers
Function
random
(min, max int)
ch14/anomaly.go:13
↓ 1 callers
Function
read
()
ch10/monitor.go:19
↓ 1 callers
Function
readSize
(f *os.File, size int)
ch08/readSize.go:10
↓ 1 callers
Function
regularFunction
(a, b twoInts)
ch07/methods.go:12
↓ 1 callers
Function
retStructure
(n, s string, h int32)
ch04/pointerStruct.go:20
↓ 1 callers
Function
returnPointer
(n int)
ch03/pointers.go:11
↓ 1 callers
Function
returnPtr
(x int)
ch06/returnPtr.go:7
↓ 1 callers
Function
reverse
(t *Node)
ch05/doublyLList.go:47
↓ 1 callers
Function
save
()
ch08/kvSaveLoad.go:20
↓ 1 callers
Function
saveToJSON
(filename *os.File, key interface{})
ch04/writeJSON.go:20
↓ 1 callers
Function
second
(out chan<- int, in <-chan int)
ch09/plNoRace.go:32
↓ 1 callers
Function
second
(out chan<- int, in <-chan int)
ch09/pipeline.go:29
↓ 1 callers
Function
send
(c chan int)
ch10/nilChannel.go:24
↓ 1 callers
Function
set
(newValue int)
ch10/monitor.go:15
↓ 1 callers
Function
size
(t *Node)
ch05/doublyLList.go:67
↓ 1 callers
Function
third
(in <-chan int)
ch09/plNoRace.go:47
↓ 1 callers
Function
third
(in <-chan int)
ch09/pipeline.go:44
↓ 1 callers
Function
traverse
(hash *HashTable)
ch05/hashTable.go:29
↓ 1 callers
Function
two
(aLog *log.Logger)
ch02/logDefer.go:20
↓ 1 callers
Function
validPuzzle
(sl [][]int)
ch05/sudoku.go:53
↓ 1 callers
Function
varFunc
(input ...string)
ch06/variadic.go:8
↓ 1 callers
Function
variance
(x []float64)
ch14/outlier.go:15
↓ 1 callers
Function
wordByWord
(file string)
ch08/byWord.go:12
↓ 1 callers
Function
worker
(w *sync.WaitGroup)
ch10/workerPool.go:27
↓ 1 callers
Function
writeToChannel
(c chan int, x int)
ch09/writeCh.go:8
↓ 1 callers
Function
writeToChannel
(c chan int, x int)
ch09/readCh.go:8
Function
A
()
ch06/aPackage.go:7
Method
A
()
ch07/ooo.go:26
Method
Area
()
ch07/useInterface.go:17
Method
Area
()
ch07/useInterface.go:25
Function
B
()
ch06/aPackage.go:11
Function
Benchmark1000Create
(b *testing.B)
ch11/writingBU_test.go:40
Function
Benchmark10Create
(b *testing.B)
ch11/writingBU_test.go:36
Function
Benchmark1Create
(b *testing.B)
ch11/writingBU_test.go:24
Function
Benchmark2Create
(b *testing.B)
ch11/writingBU_test.go:28
Function
Benchmark30fibo1
(b *testing.B)
ch11/benchmarkMe_test.go:33
Function
Benchmark30fibo2
(b *testing.B)
ch11/benchmarkMe_test.go:37
Function
Benchmark30fibo3
(b *testing.B)
ch11/benchmarkMe_test.go:41
Function
Benchmark4Create
(b *testing.B)
ch11/writingBU_test.go:32
Function
Benchmark50fibo1
(b *testing.B)
ch11/benchmarkMe_test.go:45
Function
Benchmark50fibo2
(b *testing.B)
ch11/benchmarkMe_test.go:49
Function
Benchmark50fibo3
(b *testing.B)
ch11/benchmarkMe_test.go:53
Function
BenchmarkFiboIII
This is also a correct benchmark function
ch11/benchmarkMe_test.go:65
Function
BenchmarkFiboIV
This is a correct benchmark function
ch11/benchmarkMe_test.go:58
Function
CheckStatusOK
(w http.ResponseWriter, r *http.Request)
ch12/testWWW.go:9
Function
DELETE
(k string)
ch12/kvWeb.go:69
Function
Default
(w http.ResponseWriter, req *http.Request)
ch13/HTTPS/https.go:10
Method
Descriptor
()
ch12/gRPC/api.pb.go:38
Method
Descriptor
()
ch12/gRPC/api.pb.go:85
Function
ExampleF1
()
ch11/documentMe_test.go:15
Function
ExampleF1
()
ch11/ex_test.go:7
Function
ExampleS1
()
ch11/documentMe_test.go:7
Function
ExampleS1
()
ch11/ex_test.go:15
Function
Execute
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the r
ch08/cobra/cli/cmd/root.go:45
Function
Execute
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the r
ch08/cobra/aliases/cmd/root.go:45
Function
F1
The F1() function returns the double value of its input integer A better function name would have been Double()!
ch11/documentMe.go:24
Function
FromA
()
ch06/a.go:11
Function
FromB
()
ch06/b.go:12
Method
GetSubtext
()
ch12/gRPC/api.pb.go:67
Method
GetSubtext
()
ch12/gRPC/api.pb.go:114
Method
GetText
()
ch12/gRPC/api.pb.go:60
Method
GetText
()
ch12/gRPC/api.pb.go:107
Method
Len
()
ch14/plotLR.go:20
Method
Less
(a, b int)
ch05/conHeap.go:26
Method
Map
(m reflect.Value)
ch07/walkRef.go:19
Method
MapElem
(m, k, v reflect.Value)
ch07/walkRef.go:24
Method
Multiply
(arguments *sharedRPC.MyFloats, reply *float64)
ch13/RPCserver.go:19
Method
Multiply
(arguments *MyFloats, reply *float64)
ch13/sharedRPC.go:8
Function
MyHandler
(w http.ResponseWriter, r *http.Request)
ch12/testWWW.go:18
Function
NewMessageServiceClient
(cc *grpc.ClientConn)
ch12/gRPC/api.pb.go:161
Function
PRINT
()
ch12/kvWeb.go:92
Method
Perimeter
()
ch07/useInterface.go:29
Method
Pop
()
ch05/conHeap.go:10
Method
Power
(arguments *sharedRPC.MyFloats, reply *float64)
ch13/RPCserver.go:24
Method
Power
(arguments *MyFloats, reply *float64)
ch13/sharedRPC.go:9
Method
ProtoMessage
()
ch12/gRPC/api.pb.go:37
Method
ProtoMessage
()
ch12/gRPC/api.pb.go:84
Function
RegisterMessageServiceServer
(s *grpc.Server, srv MessageServiceServer)
ch12/gRPC/api.pb.go:187
Method
Reset
()
ch12/gRPC/api.pb.go:82
Function
S1
The S1() function finds the length of a string It iterates over the string using range
ch11/documentMe.go:11
Method
SayIt
(ctx context.Context, r *p.Request)
ch12/gRPC/gServer.go:16
Method
SayIt
(ctx context.Context, in *Request, opts ...grpc.CallOption)
ch12/gRPC/api.pb.go:165
Method
SayIt
(context.Context, *Request)
ch12/gRPC/api.pb.go:176
Method
SayIt
(ctx context.Context, req *Request)
ch12/gRPC/api.pb.go:183
Function
StatusNotFound
(w http.ResponseWriter, r *http.Request)
ch12/testWWW.go:14
Method
String
()
ch12/gRPC/api.pb.go:83
Method
Swap
(a, b int)
ch05/conHeap.go:30
Function
TestCheckStatusOK
(t *testing.T)
ch12/testWWW_test.go:10
Function
TestF1
(t *testing.T)
ch11/testMe_test.go:25
Function
TestF2
(t *testing.T)
ch11/testMe_test.go:43
Function
TestFibo1
(t *testing.T)
ch11/cover/codeCover_test.go:7
Function
TestFibo1_10
(t *testing.T)
ch11/cover/codeCover_test.go:19
← previous
next →
201–300 of 639, ranked by callers