We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11625c1 commit 07fa138Copy full SHA for 07fa138
snippets/go/basics/hello-world.md
@@ -0,0 +1,17 @@
1
+---
2
+title: Hello, World!
3
+description: A simple function that outputs "Hello, World!"
4
+author: AmeerMoustafa
5
+tags: golang,basics,formatting
6
7
+
8
+```go
9
+package main // A package in Go is how Golang knows which files are related
10
11
+import "fmt" // Imports the fmt package, commonly used for printing
12
13
+func main() { // the main function in Go acts as the entry point to our program
14
15
+ fmt.Println("Hello, World!") // Calling the Println function from the fmt package
16
+}
17
+```
snippets/go/icon.svg
0 commit comments