- Install Golang link
go run .
under the repo root folder
- Static datatype that we can get information when compiling.
- Nice interface to spin up Goroutine.
- Feel easy to understand how to write and run go programs.
- Pointer and reference.
- In some parts it smells cleaner
- Feel something weird about
fmt
library, likeScanf
will pipe string back to stdin which might cause issues. - Controversial error handling. I feel good to be able to explicitly know the error message but I need to bypass the errors by several if or switch statements to handle each case which feels a little bit too much.
- No function overloading and user defined operators.
- No Generics
- Kinda wondering the performance on CPU, RAM, compile time, process time between c++ and go.
- Guess I need to defined my onw
UserDataPrintln
to print the format of the struct I want since golang doesn't want me to overload