From 50ff803a4ab83b68c97f555fd54b5cedeac2888c Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 4 Jan 2025 15:12:42 +0000 Subject: [PATCH] Update consolidated snippets --- public/consolidated/_index.json | 4 ++++ public/consolidated/go.json | 19 +++++++++++++++++++ public/icons/go.svg | 6 ++++++ 3 files changed, 29 insertions(+) create mode 100644 public/consolidated/go.json create mode 100644 public/icons/go.svg diff --git a/public/consolidated/_index.json b/public/consolidated/_index.json index 6f82a67a..a91092b5 100644 --- a/public/consolidated/_index.json +++ b/public/consolidated/_index.json @@ -15,6 +15,10 @@ "lang": "CSS", "icon": "/icons/css.svg" }, + { + "lang": "GO", + "icon": "/icons/go.svg" + }, { "lang": "HASKELL", "icon": "/icons/haskell.svg" diff --git a/public/consolidated/go.json b/public/consolidated/go.json new file mode 100644 index 00000000..3972d3de --- /dev/null +++ b/public/consolidated/go.json @@ -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" + } + ] + } +] \ No newline at end of file diff --git a/public/icons/go.svg b/public/icons/go.svg new file mode 100644 index 00000000..b42816f9 --- /dev/null +++ b/public/icons/go.svg @@ -0,0 +1,6 @@ + + + + + +