张 小龙

1624951162

Creating constant values in Go with the const keyword | Smart Go

The const keyword in Go lets you create values that are immutable across the lifetime of your program. But Go consts behave a little differently from similar features in other languages. Learn how consts work in Go, and how to use them as the language intends.

Subscribe: https://www.youtube.com/c/IDGTECHtalk/featured

#go #golang

Creating constant values in Go with the const keyword | Smart Go