Dicas de Go

De Aulas
Revisão de 08h28min de 8 de setembro de 2021 por Admin (discussão | contribs) (Criou página com ' # 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 meth...')
(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)
  1. static var in C# class => global var in Golang package
  2. enum in C# => new package with enum name and const type of enum elements
  3. class in OOP => struct type
  4. class methods => struct with receiver methods
  5. C#/Java abstract methods(pure virtual functions in C++) => interface methods like io.Reader
  6. public => first letter Upper case Name
  7. private => first letter lower case name
  8. namespace => package name
  9. inheritance => embedded struct and embedded interface
  10. Thread => Go routines
  11. lock => sync.Mutex