| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1c21107 commit 9e174e1
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,3 @@ | |||
| 1 | + module local/codingPractice | ||
| 2 | + | ||
| 3 | + go 1.22.2 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,16 @@ | |||
| 1 | + package main | ||
| 2 | + | ||
| 3 | + import "fmt" | ||
| 4 | + | ||
| 5 | + func main() { | ||
| 6 | + var age int = 30 | ||
| 7 | + name := "Alice" | ||
| 8 | + const country = "India" | ||
| 9 | + | ||
| 10 | + fmt.Println("Name:", name) | ||
| 11 | + fmt.Println("Age:", age) | ||
| 12 | + fmt.Println("Country:", country) | ||
| 13 | + | ||
| 14 | + var notInitialized string | ||
| 15 | + fmt.Println("Default value of notInitialized:", notInitialized) | ||
| 16 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments