---
title: "Discussion on \"Golang Basics II: If/Else Statements and Arrays\" | Hashnode"
description: "Discussion on \"Golang Basics II: If/Else Statements and Arrays\". Like in the previous section, I drop the snippets, and we code along and run.\npackage main\n\nimport \"fmt\"\n\nfunc main()  {\n\n    if condition {\n        expression...\n    } else {\n        expression...\n    }    \n\n }\n\nStraight to If/Else statements. These..."
url: "https://hashnode.com/posts/golang-basics-ii-ifelse-statements-and-arrays/63bcc2c0defc90151aab9650"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Golang Basics II: If/Else Statements and Arrays](https://aimbits.hashnode.dev/golang-basics-ii-ifelse-statements-and-arrays?utm_source=hashnode&utm_medium=feed)

Like in the previous section, I drop the snippets, and we code along and run. package main import "fmt" func main() { if condition { expression... } else { expression... } } Straight to If/Else statements. These...

Jan 10, 2023 · 3 min read · aimbits.hashnode.dev  
Read the article

-   [#if-else-in-golang](https://hashnode.com/tag/if-else-in-golang)
-   [#if-else-golang](https://hashnode.com/tag/if-else-golang)
-   [#if-and-else-in-golang](https://hashnode.com/tag/if-and-else-in-golang)
-   [#golang-basics](https://hashnode.com/tag/golang-basics)
-   [#basics-of-golang](https://hashnode.com/tag/basics-of-golang)

## Written by

[MIchael Akor](https://hashnode.com/@aimbits)

@aimbits

  
[View profile](https://hashnode.com/@aimbits)

Tech Enthusiast

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
