SVsandeep vurainsandeepvura.hashnode.dev·May 21, 2022 · 2 min readDay5: Short variables declaration and Naming RulesWe mentioned that you can declare variables and assign them values on the same line: But if you know what the initial value of a variable is going to be as soon as you declare it, it’s more typical to use a short variable declaration. Instead of expl...00
SVsandeep vurainsandeepvura.hashnode.dev·May 17, 2022 · 1 min readDay 4: Escape Sequence Values\n - A newline character \t - A tab character \" - A double Quotation marks \\ - A backslash Sample Code: "Hello, \n Go" Output: Hello Go "Hello, \t Go" Output: Hello, Go "Quotes:, \"\"" Output: Quotes: "" "Backslash: \\" Output: Backslash...00
SVsandeep vurainsandeepvura.hashnode.dev·May 15, 2022 · 3 min readDay 3: Print Formatted Data and DataTypes in GoLangIt takes a template string that contains the text that needs to be formatted. Printf - "Print Formatter" this function allows you to format numbers, variables and strings into the first string parameter you give it. Print - "Print" This cannot forma...00
SVsandeep vurainsandeepvura.hashnode.dev·May 14, 2022 · 1 min readDay 2: Variables & Constants in GoVariables Variables are used to store values. Constants Once the value is stored cannot be replaced. Sample Code package main import "fmt" func main() { var conferenceName = "Go Conference" const conferenceTickets = 50 var remaining...00
SVsandeep vurainsandeepvura.hashnode.dev·May 14, 2022 · 1 min readDay 1: GoLangGo was designed to run multiple cores and built to support concurrency Concurrency in Go is cheap and easy. Go Official Link Install Go Follow the below link to download and Install Go based on supported OS. Download Go Create Module in Go: Crea...00