Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

If else in golang

if num := 9; num < 0 {
 fmt.Println(num, "is negative")
} else if num < 10 {
 fmt.Println(num, "has 1 digit")
} else {
 fmt.Println(num, "has multiple digits")
}
Source by gowithgolang.com #
 
PREVIOUS NEXT
Tagged: #If #golang
ADD COMMENT
Topic
Name
9+2 =