Skip to content

Commit 50ff803

Browse files
committed
Update consolidated snippets
1 parent 335d9ee commit 50ff803

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

public/consolidated/_index.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
"lang": "CSS",
1616
"icon": "/icons/css.svg"
1717
},
18+
{
19+
"lang": "GO",
20+
"icon": "/icons/go.svg"
21+
},
1822
{
1923
"lang": "HASKELL",
2024
"icon": "/icons/haskell.svg"

public/consolidated/go.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[
2+
{
3+
"categoryName": "Basics",
4+
"snippets": [
5+
{
6+
"title": "Hello, World!",
7+
"description": "A simple function that outputs \"Hello, World!\"",
8+
"author": "AmeerMoustafa",
9+
"tags": [
10+
"golang",
11+
"basics",
12+
"formatting"
13+
],
14+
"contributors": [],
15+
"code": "package main // A package in Go is how Golang knows which files are related\n\nimport \"fmt\" // Imports the fmt package, commonly used for printing\n\nfunc main() { // the main function in Go acts as the entry point to our program\n\n fmt.Println(\"Hello, World!\") // Calling the Println function from the fmt package \n}\n"
16+
}
17+
]
18+
}
19+
]

public/icons/go.svg

Lines changed: 6 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)