Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Mathieu-Desrochers/Learning-Go
/ functions
Functions
35 in github.com/Mathieu-Desrochers/Learning-Go
⨍
Functions
35
◇
Types & classes
13
↓ 2 callers
Function
Division
profiling CPU, memory and blocking go test -bench=. -cpuprofile=cpu.out go test -bench=. -memprofile=mem.out go test -bench=. -blockprofile=block.out
main_test.go:80
↓ 2 callers
Function
ooops
error handling
main.go:223
↓ 1 callers
Method
CanQuack
methods are attached to a receiver type
main.go:321
↓ 1 callers
Function
GetCustomer
(customerId int)
main_test.go:38
↓ 1 callers
Method
GrowLeg
receivers are primarily pointers to allow state mutations
main.go:327
↓ 1 callers
Function
Lengthy
computing test coverage and displaying the green/red source go test -coverprofile=cover.out go tool cover -html=cover.out benchmarking time and memory
main_test.go:60
↓ 1 callers
Function
Print
calling C code
main_ffi.go:9
↓ 1 callers
Method
Quack
(times int)
main.go:386
↓ 1 callers
Function
bareReturns
()
main.go:208
↓ 1 callers
Function
later
()
main.go:246
↓ 1 callers
Function
laterr
()
main.go:331
↓ 1 callers
Function
laterrr
()
main.go:399
↓ 1 callers
Function
laterrrr
()
main.go:465
↓ 1 callers
Function
multipleReturns
()
main.go:205
↓ 1 callers
Function
noReturn
function signatures
main.go:200
↓ 1 callers
Function
oneReturn
()
main.go:202
Function
BenchmarkLengthy
(b *testing.B)
main_test.go:65
Function
ExampleDivision
()
main_test.go:84
Method
HugeCaloriesCount
getters and setters
main.go:377
Method
Len
()
main.go:449
Method
Len
()
main.go:461
Method
Less
(i, j int)
main.go:450
Method
Less
(i, j int)
main.go:462
Method
Quack
(times int)
main.go:393
Method
SetHugeCaloriesCount
(value int)
main.go:380
Method
Swap
(i, j int)
main.go:451
Method
Swap
(i, j int)
main.go:463
Function
TestAddition
running tests go test
main_test.go:11
Function
TestGetCustomer
(t *testing.T)
main_test.go:42
Function
TestTableDriven
(t *testing.T)
main_test.go:17
Function
addNumbers
functions as values
main.go:242
Function
errorPropagation
()
main.go:226
Function
errorWithContext
(color string)
main.go:233
Function
main
()
main.go:13
Function
recurse
there is no tail call optimization but we get auto-growing stacks
main.go:216