Created
October 2, 2019 00:22
-
-
Save 100daysofdevops/f88a7d228605177977dfedb484772608 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 swapvalue(val1, val2 string) (string, string) { | |
| return val2, val1 | |
| } | |
| func main() { | |
| retval1, retval2 := swapvalue("Lakh", "Prash") | |
| fmt.Println(retval1, retval2) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment