Features of Go
Last updated
Was this helpful?
Last updated
Was this helpful?
If you import a package or declare a variable, then haven't used it on your program, an error will be caused.
They call threading processing Goroutines
. It's super easy to use, read more about it:
There has no such a thing called named arguments
in the function definition.
There has no such a thing called private field (or arguments)
for a struct (or class)
. If you need a struct that has a lot of private variables inside of that struct (or class), you need to return a point of a new struct.
If you don't give a point of a struct to your struct function, you won't be able to use it as a normal class as you would do in other programming languages. (Because you can't really change the in-class variable in that case)
There is no such a thing called default arguments
in the function definition or struct definition.