Enhanced formatting (#6769)

pull/6777/head^2
Lucas Dondo 5 months ago committed by GitHub
parent 96f9a12343
commit 8a3c761698
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 12
      src/data/roadmaps/golang/content/100-go-basics/107-conditionals.md

@ -1,15 +1,15 @@
# Conditional Statements # 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` statements
- `if / else` statements - `if...else` statements
- `switch` `case` statements - `switch...case` statements
Visit the following resources to learn more: Visit the following resources to learn more:
- [@official@Effective Go: if statement](https://go.dev/doc/effective_go#if) - [@official@Effective Go: `if` statement](https://go.dev/doc/effective_go#if)
- [@article@Basic conditional patterns](https://yourbasic.org/golang/if-else-statement/) - [@article@Basic conditional patterns](https://yourbasic.org/golang/if-else-statement)
- [@article@Go by Example: If-Else](https://gobyexample.com/if-else) - [@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 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…
Cancel
Save