Dicas de Go
De Aulas
- static var in C# class => global var in Golang package
- enum in C# => new package with enum name and const type of enum elements
- class in OOP => struct type
- class methods => struct with receiver methods
- C#/Java abstract methods(pure virtual functions in C++) => interface methods like io.Reader
- public => first letter Upper case Name
- private => first letter lower case name
- namespace => package name
- inheritance => embedded struct and embedded interface
- Thread => Go routines
- lock => sync.Mutex