---
title: "What is the difference between var and := for variable declaration?"  
description: "What is the difference between var and := for variable declaration?"  
author: "Ravi Vishwakarma"  
published: 2025-04-01  
updated: 2025-04-02  
canonical: https://www.mindstick.com/forum/161394/what-is-the-difference-between-var-and-for-variable-declaration  
category: "programming language"  
tags: ["Go Programming"]  
reading_time: 1 minute  

---

# What is the difference between var and := for variable declaration?

What is the [difference](https://www.mindstick.com/articles/157114/good-news-or-bad-news-and-the-difference-is) between `var` and `:=` for [variable](https://www.mindstick.com/articles/1807/objective-c-data-types-variables-object-creation) declaration?


---

Original Source: https://www.mindstick.com/forum/161394/what-is-the-difference-between-var-and-for-variable-declaration

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
