Skip to content

Instantly share code, notes, and snippets.

@Mayankgupta688
Created March 20, 2023 04:12
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 Mayankgupta688/f25ff25b9429c28d42ccbac34156fcd4 to your computer and use it in GitHub Desktop.
Save Mayankgupta688/f25ff25b9429c28d42ccbac34156fcd4 to your computer and use it in GitHub Desktop.
package main
import "fmt"
func main() {
userName, userAge := getValues()
fmt.Println("User Name is:", userName)
fmt.Println("User Age is:", userAge)
}
func getValues() (userName string, userAge int) {
userName = "Mayank"
userAge = 34
return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment