Created
March 20, 2023 04:12
-
-
Save Mayankgupta688/f25ff25b9429c28d42ccbac34156fcd4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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