* Update 107-conditionals.md * Update content/roadmaps/109-golang/content/100-go-basics/107-conditionals.md Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>pull/1701/head
parent
98fdb6aa91
commit
be1c2faa60
1 changed files with 12 additions and 1 deletions
@ -1 +1,12 @@ |
||||
# Conditionals |
||||
# Conditional Statements |
||||
|
||||
Conditional statements are used to run code only if a certain condition is true; go supports : |
||||
|
||||
- `if` statements |
||||
- `if / else` statements |
||||
- `switch` `case` statements |
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle> |
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://yourbasic.org/golang/if-else-statement/'>Basic conditional patterns</BadgeLink> |
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://gobyexample.com/if-else'>Go by Example: If-Else</BadgeLink> |
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.golangprograms.com/golang-if-else-statements.html'>Golang programs if else</BadgeLink><BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.golangprograms.com/golang-switch-case-statements.html'>Golang programs switch case</BadgeLink> |
||||
|
Loading…
Reference in new issue