3 cách:
var name string = "Go"(đầy đủ).var name = "Go"(type inference).name := "Go"(short declaration, chỉ trong function).:=phổ biến nhất.vardùng ở package level hoặc khi cần zero value
Go không có let/const như JS.
There are 3 ways:
var name string = "Go"(full declaration).var name = "Go"(type inference).name := "Go"(short declaration, only inside functions).:=is the most common.varis used at package level or when you need the zero value explicitly
Go has no let/const like JavaScript.