dev-resources.site
for different kinds of informations.
Learning GO : 01 - Type Declaration
Published at
10/6/2024
Categories
go
learning
notes
Author
gaurav444
Main Article
Author
9 person written this
gaurav444
open
Hey! I am Currently learning Go Lang, and I am taking some basic Notes on my Notion and though I'd also just publish them here. They are not well thought out or well written but it's just me taking notes from time to time for my reference.
I am taking the Udemy Course by Maximilian Schwarzmรผller,
Notes
import "fmt"
func main(){
fmt.Print("Hello World")
}
go run app.go
- Main function is the entry point for whole GO application
- Print is a method that comes from the fmt package
- Strings are only allowed in double quotes or backticks only
Every Go file needs a package imported that will be same as the file name
Idea for packages is to organize code
package can be made up of multiple files
Explicit type declaration
- Go can by itself get the type of values being stored in the variable, but we can also declare a type so that we can say what value can be stored there and with that we can remove any extra type conversion
var investmentAmount float64 = 1000
- explicit type can be added after the variable name
notes Article's
30 articles in total
vim_notes
read article
2024
read article
Exploring Oracle 24D: A Deep Dive into Release Notes
read article
Combining Ghost and Quarto (The Lazy Way)
read article
Managing To Dos in recurring meetings, when there's no agreed upon tool
read article
Google Workspace Mail Management
read article
Google Workspace Security Part 2: SSO, API Access, Managing Connected Apps and the Alert Center
read article
Google Workspace Security Part 1: Common Security Settings and 2SV
read article
Managing Google Workspace Part 3: MDM Basics, Vault, Reporting and Domains
read article
Get 10th Class Math Notes (Matric Part 2) โ Download Now for Free
read article
Managing Google Workspace Part 1: Core Services, Additional Services and Marketplace Apps
read article
Managing Google Workspace Part 2: Gmail, Calendar and Drive
read article
Learning GO : 09 - Packages
read article
Hopefully Helpful Notes, Best Practices, ...
read article
Learning GO : 08 - File Handling, Error Handling
read article
Learning GO: 07 - Loops
read article
Learning GO: 03 - User Input, Variable Declaration without initialization
read article
Learning GO: 02 - Variable Declaration
read article
Learning GO: 04 - Printing Strings
read article
Learning GO: 06 - Function return values, if condition
read article
Learning GO : 01 - Type Declaration
currently reading
Learning GO: 05 - Function Declaration
read article
Why Obsidian Falls Short as a Note-Taking Tool
read article
VS Code for Note-Taking
read article
Notes on The Every Computer Performance Book
read article
dossi is now open source
read article
Promises in JS(Personal notes)
read article
I switched from Notion to Obsidian
read article
Notes templates
read article
Cloud Computing - "It's MAGIC"!
read article
Featured ones: