Skip to content

Commit

Permalink
Update consolidated snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 4, 2025
1 parent 335d9ee commit 50ff803
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/consolidated/_index.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
"lang": "CSS",
"icon": "/icons/css.svg"
},
{
"lang": "GO",
"icon": "/icons/go.svg"
},
{
"lang": "HASKELL",
"icon": "/icons/haskell.svg"
Expand Down
19 changes: 19 additions & 0 deletions public/consolidated/go.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{
"categoryName": "Basics",
"snippets": [
{
"title": "Hello, World!",
"description": "A simple function that outputs \"Hello, World!\"",
"author": "AmeerMoustafa",
"tags": [
"golang",
"basics",
"formatting"
],
"contributors": [],
"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"
}
]
}
]
6 changes: 6 additions & 0 deletions public/icons/go.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 50ff803

Please sign in to comment.