Please enable JavaScript.
Coggle requires JavaScript to display documents.
Learn GO - Coggle Diagram
Learn GO
:dragon:GO Approach
-
:comet:Receivers
GO doesn't have classes. However we can create new custom types extending from base types and attach new functionalities to it
We can then define functions which accept a Receiver : every type of the receiver type will get access to the defined function
-
-
by convention, a receiver is defined with one/two/three letters abbreviations
-
-
:crab: Error Handling
Error type
The error type is an interface type. An error variable represents any value that can describe itself as a string
-
:explode:Testing With GO
testing with is not like using testing frameworks like jasmine, mocha etc.
to make a test, create a file ending with "_test.go"
-
-
-
-
:mask:Interfaces
-
Defining interfaces
-
-
-
-
-
Basics to get started
-
Packages
a package can be considered a project, a workspace - a collection of source files
-
-
Reusable packages
-
-
many reusable packages from the go standard lib: fmt, io math, etc.
-
Multiple imports
-