computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
963 B
13 lines
963 B
# 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://go.dev/doc/effective_go#if'>Effective Go: if statement</BadgeLink> |
|
<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>
|
|
|