mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-04-12 19:31:57 +02:00
Enhanced formatting (#6769)
This commit is contained in:
parent
96f9a12343
commit
8a3c761698
@ -1,15 +1,15 @@
|
||||
# Conditional Statements
|
||||
|
||||
Conditional statements are used to run code only if a certain condition is true; go supports :
|
||||
Conditional statements are used to run code only if a certain condition is true. Go supports:
|
||||
|
||||
- `if` statements
|
||||
- `if / else` statements
|
||||
- `switch` `case` statements
|
||||
- `if...else` statements
|
||||
- `switch...case` statements
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Effective Go: if statement](https://go.dev/doc/effective_go#if)
|
||||
- [@article@Basic conditional patterns](https://yourbasic.org/golang/if-else-statement/)
|
||||
- [@official@Effective Go: `if` statement](https://go.dev/doc/effective_go#if)
|
||||
- [@article@Basic conditional patterns](https://yourbasic.org/golang/if-else-statement)
|
||||
- [@article@Go by Example: If-Else](https://gobyexample.com/if-else)
|
||||
- [@article@Golang programs If-Else statement](https://www.golangprograms.com/golang-if-else-statements.html)
|
||||
- [@article@Golang programs switch case](https://www.golangprograms.com/golang-switch-case-statements.html)
|
||||
- [@article@Golang programs `switch` case](https://www.golangprograms.com/golang-switch-case-statements.html)
|
||||
|
Loading…
x
Reference in New Issue
Block a user