I'd like to have a feature of Golang which is functions returning multiple values in JavaScript. Here's the code.
package main
import (
"fmt"
)
func main() {
str, bl, num := variadicFn("India")
fmt.Println(str, bl, num) // "Hello, India" true, 100
}
func variadicFn(what string) (string, bool, int) {
return "Hello, " + what, true, 100
}