MCPcopy Create free account
hub / github.com/derekbanas/Go-Tutorial / dblArrVals

Function dblArrVals

hellogo.go:88–92  ·  view source on GitHub ↗

Receives array by reference and doubles values

(arr *[4]int)

Source from the content-addressed store, hash-verified

86
87// Receives array by reference and doubles values
88func dblArrVals(arr *[4]int) {
89 for x := 0; x < 4; x++ {
90 arr[x] *= 2
91 }
92}
93
94func getAverage(nums ...float64) float64 {
95 var sum float64 = 0.0

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected