---
title: "Discussion on \"Short Variable Declarations\" | Hashnode"
description: "Discussion on \"Short Variable Declarations\". Inside a function, the := short assignment statement can be used in place of a var declaration with implicit type.\nOutside a function, every statement begins with a keyword (var, func, and so on) and so the := construct is not available.\npackage main..."
url: "https://hashnode.com/posts/short-variable-declarations--deleted/6280f574bc9305ec39364f11"
---

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

Discussion

# [Short Variable Declarations](https://blog.cloudnativefolks.org/short-variable-declarations--deleted?utm_source=hashnode&utm_medium=feed)

Inside a function, the := short assignment statement can be used in place of a var declaration with implicit type. Outside a function, every statement begins with a keyword (var, func, and so on) and so the := construct is not available. package main...

May 15, 2022 · 1 min read · blog.cloudnativefolks.org  
Read the article

-   [#go](https://hashnode.com/tag/go)

## Written by

[Sangam Biradar](https://hashnode.com/@sangambiradar)

@sangambiradar · India

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

AI Security

DevRel at StackGen | Formerly at Deepfence ,Tenable , Accurics | AWS Community Builder also Docker Community Award Winner at Dockercon2020 | CyberSecurity Innovator of Year 2023 award by Bsides Bangalore | Docker/HashiCorp Meetup Organiser Bangalore &amp; Co-Author of Learn Lightweight Kubernetes with k3s (2019) , Packt Publication &amp; also run Non Profit CloudNativeFolks / CloudSecCorner Community To Empower Free Education reach out me twitterhttps://twitter.com/sangamtwts or just follow on GitHub -&gt; https://github.com/sangam14 for Valuable Resources

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
