@toast can you help me with golang?
What does := do?
@rage @toast := sets an unknown variable on the left to a value in the right:
var myString = "a string"
myString := "a string"
@utahcon @toast what about just using = instead?
@rage @toast only if the variable is already declared:
var myString stringmyString = "the sting"
The reason is flags to the compiler that the variable either already exists (and look for it) or it doesn't (and make it)
Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.