---
title: "Diego Maia (@diegocmsantos) | Hashnode"
description: "Web development. Read the latest articles by Diego Maia on Hashnode."
url: "https://hashnode.com/@diegocmsantos"
---

@diegocmsantos

# Diego Maia

@diegocmsantos · Joined January 2021

Web development

### [Conditionals (if-else) in Go](https://diegocmsantos.hashnode.dev/conditionals-if-else-in-go?utm_source=hashnode&utm_medium=feed)

The most basic statement in every programming language is the "if" statement. It is used when we need to do something based on some conditions. If Statement package main import "fmt" func main() { age := 21 if age > 20 { fmt.Println...

3 min read · [diegocmsantos.hashnode.dev](https://diegocmsantos.hashnode.dev/conditionals-if-else-in-go?utm_source=hashnode&utm_medium=feed)

[Jan 5, 2021](https://hashnode.com/posts/conditionals-if-else-in-go/5ff4a401e8e57e1374e69312)
