Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/derekbanas/Go-Tutorial
/ getSum
Function
getSum
hellogo.go:38–40 ·
view source on GitHub ↗
Returns sum of values
(x int, y int)
Source
from the content-addressed store, hash-verified
36
37
// Returns sum of values
38
func
getSum(x int, y int) int {
39
return
x + y
40
}
41
42
// Return multiple values
43
func
getTwo(x int) (int, int) {
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected