Add Go conditional statements resources

* 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
Hijen EL Khalifi 2 years ago committed by GitHub
parent 98fdb6aa91
commit be1c2faa60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      content/roadmaps/109-golang/content/100-go-basics/107-conditionals.md

@ -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…
Cancel
Save