MCPcopy Create free account

hub / github.com/Mathieu-Desrochers/Learning-Go / functions

Functions35 in github.com/Mathieu-Desrochers/Learning-Go

↓ 2 callersFunctionDivision
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 callersFunctionooops
error handling
main.go:223
↓ 1 callersMethodCanQuack
methods are attached to a receiver type
main.go:321
↓ 1 callersFunctionGetCustomer
(customerId int)
main_test.go:38
↓ 1 callersMethodGrowLeg
receivers are primarily pointers to allow state mutations
main.go:327
↓ 1 callersFunctionLengthy
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 callersFunctionPrint
calling C code
main_ffi.go:9
↓ 1 callersMethodQuack
(times int)
main.go:386
↓ 1 callersFunctionbareReturns
()
main.go:208
↓ 1 callersFunctionlater
()
main.go:246
↓ 1 callersFunctionlaterr
()
main.go:331
↓ 1 callersFunctionlaterrr
()
main.go:399
↓ 1 callersFunctionlaterrrr
()
main.go:465
↓ 1 callersFunctionmultipleReturns
()
main.go:205
↓ 1 callersFunctionnoReturn
function signatures
main.go:200
↓ 1 callersFunctiononeReturn
()
main.go:202
FunctionBenchmarkLengthy
(b *testing.B)
main_test.go:65
FunctionExampleDivision
()
main_test.go:84
MethodHugeCaloriesCount
getters and setters
main.go:377
MethodLen
()
main.go:449
MethodLen
()
main.go:461
MethodLess
(i, j int)
main.go:450
MethodLess
(i, j int)
main.go:462
MethodQuack
(times int)
main.go:393
MethodSetHugeCaloriesCount
(value int)
main.go:380
MethodSwap
(i, j int)
main.go:451
MethodSwap
(i, j int)
main.go:463
FunctionTestAddition
running tests go test
main_test.go:11
FunctionTestGetCustomer
(t *testing.T)
main_test.go:42
FunctionTestTableDriven
(t *testing.T)
main_test.go:17
FunctionaddNumbers
functions as values
main.go:242
FunctionerrorPropagation
()
main.go:226
FunctionerrorWithContext
(color string)
main.go:233
Functionmain
()
main.go:13
Functionrecurse
there is no tail call optimization but we get auto-growing stacks
main.go:216