MCPcopy 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
43func getTwo(x int) (int, int) {
44 return x + 1, x + 2
45}
46
47// Return potential error
48func getQuotient(x float64, y float64) (ans float64, err error) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected