-
Names :
constructShort assignment statement -
Used for implicit declaration
-
It can only be used in function level as in the package level only var and func keyboard can be used
package example import "fmt" name := "Gaurav" # ❌ This will not work & throw err func main(){ age := 12 # ✔️ This will work and age will be of type: int fmt.Println(age) }