How to swap two values in golang?
package main
import "fmt"
func main() {
fmt.Println(functionByBestInterviewQuestion())
}
func functionByBestInterviewQuestion() []int {
a, b := 15, 10
b, a = a, b
return []int{a, b}
}
BY Best Interview Question ON 11 Mar 2020