Skip to content

Instantly share code, notes, and snippets.

@kimitoboku
Created May 3, 2014 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kimitoboku/11492842 to your computer and use it in GitHub Desktop.
Save kimitoboku/11492842 to your computer and use it in GitHub Desktop.
A Tour of Go#10
package main
import (
"fmt"
)
func split(sum int) (x,y int){
x = sum % 10
y = sum - x
return
}
func main(){
fmt.Println(split(18));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment