Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/derekbanas/Go-Tutorial
/ getTwo
Function
getTwo
hellogo.go:43–45 ·
view source on GitHub ↗
Return multiple values
(x int)
Source
from the content-addressed store, hash-verified
41
42
// Return multiple values
43
func
getTwo(x int) (int, int) {
44
return
x + 1, x + 2
45
}
46
47
// Return potential error
48
func
getQuotient(x float64, y float64) (ans float64, err error) {
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected