Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/derekbanas/Go-Tutorial
/ getArraySum
Function
getArraySum
hellogo.go:70–76 ·
view source on GitHub ↗
(arr []int)
Source
from the content-addressed store, hash-verified
68
}
69
70
func
getArraySum(arr []int) int {
71
sum := 0
72
for
_, val :=
range
arr {
73
sum += val
74
}
75
return
sum
76
}
77
78
func
changeVal(f3 int) int {
79
f3 += 1
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected