Directories ¶
Path | Synopsis |
---|---|
append
|
append |
Arrays
|
Arrays |
Package comments is a teaching example for using comments
|
Package comments is a teaching example for using comments |
scrolling to the right text, not streaming down text
|
scrolling to the right text, not streaming down text |
Constants
|
Constants |
Errors
|
Errors |
Functions
|
Functions |
try changing dir name from hello to myApp and run with "go run myApp.go"
|
try changing dir name from hello to myApp and run with "go run myApp.go" |
If/Else Statements
|
If/Else Statements |
Increment and Decrement Statements
|
Increment and Decrement Statements |
Infinite Loops
|
Infinite Loops |
interfaces
|
interfaces |
Logical Operators
|
Logical Operators |
Three Component For Loop
|
Three Component For Loop |
Maps
|
Maps |
methods (pointer receivers)
|
methods (pointer receivers) |
methods (value receivers)
|
methods (value receivers) |
Declaring Multiple Variables
|
Declaring Multiple Variables |
sorry, forgot to put this in src/gobasics directory in the video
|
sorry, forgot to put this in src/gobasics directory in the video |
// make sure your are in the root of the module for commands // get package if we don't have it already go get github.com/common-nighthawk/go-figure // creates a go.mod file to track dependencies go mod int <module-path> // will add / remove dependencies in our code to go.mod and creates go.sum go tidy
|
// make sure your are in the root of the module for commands // get package if we don't have it already go get github.com/common-nighthawk/go-figure // creates a go.mod file to track dependencies go mod int <module-path> // will add / remove dependencies in our code to go.mod and creates go.sum go tidy |
Errors
|
Errors |
pointers
|
pointers |
pointers
|
pointers |
Range
|
Range |
slices provides access to their underlying array
|
slices provides access to their underlying array |
Scope
|
Scope |
Slices
|
Slices |
Strings
|
Strings |
structs
|
structs |
Switch Statements
|
Switch Statements |
variadic functions
|
variadic functions |
Redeclared Variables
|
Redeclared Variables |
Data Types
|
Data Types |
Unused Variables
|
Unused Variables |
zero values
|
zero values |
basic web server
|
basic web server |
Click to show internal directories.
Click to hide internal directories.