RosettaCodeData/Task/Conditional-structures/Go/conditional-structures-4.go

6 lines
71 B
Go

if x := fetchSomething(); x > 0 {
DoPos(x)
} else {
DoNeg(x)
}