Day 2: Variables & Constants in Go



Variables



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...



Read: https://sandeepvura.hashnode.dev/day-2-variables-and-constants-in-go