Can I write a simple if-else statement with variable assignment in go (golang) as I would do in php (for example):
$var = ( $a > $b )? $a: $b;
currently I have to use the following:
var c int
if a > b {
c = a
} else {
c = b
}
Sorry I can not remember the name if this control statement and I couldn't find the info through in-site and google search. :/