commit 022a451f7a9012222aa44cb5e82588c8b1a3d5ce Author: vikingowl Date: Mon Dec 9 01:33:18 2024 +0100 repo init with template for days diff --git a/template/.gitignore b/template/.gitignore new file mode 100644 index 0000000..8a9eb7b --- /dev/null +++ b/template/.gitignore @@ -0,0 +1,170 @@ +# Created by https://www.toptal.com/developers/gitignore/api/go,goland+all,jetbrains+all +# Edit at https://www.toptal.com/developers/gitignore?templates=go,goland+all,jetbrains+all + +### Go ### +# If you prefer the allow list template instead of the deny list, see community template: +# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore +# +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, built with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +# vendor/ + +# Go workspace file +go.work + +### GoLand+all ### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# SonarLint plugin +.idea/sonarlint/ + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### GoLand+all Patch ### +# Ignore everything but code style settings and run configurations +# that are supposed to be shared within teams. + +.idea/* + +!.idea/codeStyles +!.idea/runConfigurations + +### JetBrains+all ### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff + +# AWS User-specific + +# Generated files + +# Sensitive or high-churn files + +# Gradle + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake + +# Mongo Explorer plugin + +# File-based project format + +# IntelliJ + +# mpeltonen/sbt-idea plugin + +# JIRA plugin + +# Cursive Clojure plugin + +# SonarLint plugin + +# Crashlytics plugin (for Android Studio and IntelliJ) + +# Editor-based Rest Client + +# Android studio 3.1+ serialized cache file + +### JetBrains+all Patch ### +# Ignore everything but code style settings and run configurations +# that are supposed to be shared within teams. + + + +# End of https://www.toptal.com/developers/gitignore/api/go,goland+all,jetbrains+all diff --git a/template/go.mod b/template/go.mod new file mode 100644 index 0000000..e40b339 --- /dev/null +++ b/template/go.mod @@ -0,0 +1,3 @@ +module Day01 + +go 1.23 diff --git a/template/input.json b/template/input.json new file mode 100644 index 0000000..0e0dcd2 --- /dev/null +++ b/template/input.json @@ -0,0 +1,3 @@ +{ + +} \ No newline at end of file diff --git a/template/main.go b/template/main.go new file mode 100644 index 0000000..36b874c --- /dev/null +++ b/template/main.go @@ -0,0 +1,17 @@ +package main + +import ( + "fmt" +) + +const DAY int = 00 + +func main() { + fmt.Println("||++++++++++++++++++++++++++++||") + fmt.Printf("|| AdventOfCode 2024 - Day %02d ||\n", DAY) + fmt.Println("||++++++++++++++++++++++++++++||\n") + + original() + fmt.Println() + optimized() +} diff --git a/template/optimized.go b/template/optimized.go new file mode 100644 index 0000000..9eb613c --- /dev/null +++ b/template/optimized.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func optimized() { + fmt.Println("Optimized Code by ChatGPT") +} diff --git a/template/original.go b/template/original.go new file mode 100644 index 0000000..b3de707 --- /dev/null +++ b/template/original.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func original() { + fmt.Println("Original Code") +}