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

6 lines
74 B
Go

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