Documentation
¶
Overview ¶
//:= the short assignment statement. The short assignment statement can be used in place of a var declaration with an implicit type. the var keyword is mostly used for declaring global variables in Go programs, as well as for declaring variables without an initial value. This means that the short assignment statement cannot be used outside of a function because it is not available there. The := operator works as follows: m := 123 is same as var m = 123
Click to show internal directories.
Click to hide internal directories.