Learning Go Language – Day 6
Goroutines Creating Goroutines: - Use the "go" keyword in front of function call - When using anonymous functions, pass data as local variables Synchronization: - Use sync.WaitGroup to wait for…
Goroutines Creating Goroutines: - Use the "go" keyword in front of function call - When using anonymous functions, pass data as local variables Synchronization: - Use sync.WaitGroup to wait for…
Functions Basic syntax: - func foo() { ... } Parameters: - Comma delimited list of variable and types - func foo(bar string, baz int) - Parameters of same type list…
If-Statements If-Statements: - Initializers: Allows you to generate a statement to set-up for a comparison - Variables in an if-statement are block-scoped - Comparison operators (primarily for numeric types): -…
Maps - Collections of value types that are access via keys - Created via literals or via "make" function - Creation syntax: - name = map[type]type() - Alt creation =…
Primitives Booleans Booleans: - Values are true or false - NOT an alias for other types (I.E int) unlike in other programming languages - Zero value is false // Boolean…
Key features of the Go language: - Simplicity - Strong and statically typed - Fast compile times - Garbage collected, AKA you do not need to manage your own memory…
DOM & DOM Manipulation The DOM in JavaScript stands for Document Object Model, or a structured representation of HTML documents. The DOM also lets JavaScript access HTML elements and CSS…
Strict Mode In JavaScript, there is two modes you can initiate for the file: Default/Non-Strict Mode and Strict Mode. Default/Non-Strict Mode is unofficially referred to as “Sloppy Mode”, because Strict…
Fundamentals To import a Javascrpt (JS) file into an HTML file, you use the following in the <head> section: <script src="(the file name).js"></script> The Var, the Let, and the Const…
https://github.com/siempreahora/frontend-mentor-qr-code-challenge