„Używany jako wartość” w wywołaniu funkcji

Jaki jest właściwy sposób wywoływania funkcji podczas oceny ich wartości w instrukcjach warunkowych?

package main
import "fmt"
func main(){
        if sumThis(1,2) > sumThis(3,4){
                fmt.Println("test")
        } else {
                fmt.Println("derp")
        }
}
func sumThis(a, b int){
        return a+b
}

to zwraca błąd:

./test4.go:4: sumThis(1, 2) used as value
./test4.go:4: sumThis(3, 4) used as value
./test4.go:11: too many arguments to return

Jak napisałbyś to w Go?

questionAnswers(1)

yourAnswerToTheQuestion