Sometimes i find Go code hard to read when a function returns multiple values and their types are not specified. Is this possible ? See below:
func randomNumber()(int, error) {
return 4, nil
}
func main() {
nr, err := randomNumber()
// What i would like to do:
// var nr int, err error = randomNumber()
}