From a03430e03f4175c8e6e640f2f2a825231aabd191 Mon Sep 17 00:00:00 2001 From: liangzy Date: Thu, 18 Jul 2024 17:18:45 +0800 Subject: [PATCH] feat(start): initialize project with Go scaffold - Add basic Go application structure.- Include `.gitignore` file with common Go ignores. - Create `main.go` with initial "Hello, World!" implementation. --- .gitignore | 16 +++++++++++++++- main.go | 7 +++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 main.go diff --git a/.gitignore b/.gitignore index f4d432a..e63e520 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,15 @@ -# ---> Go +### Example user template template +### Example user template + +# IntelliJ project files +.idea +*.iml +out +gen +### Go template +# 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~ @@ -15,3 +26,6 @@ # Dependency directories (remove the comment below to include it) # vendor/ +# Go workspace file +go.work + diff --git a/main.go b/main.go new file mode 100644 index 0000000..06db0ba --- /dev/null +++ b/main.go @@ -0,0 +1,7 @@ +package hertz_scaffold + +import "fmt" + +func main() { + fmt.Println("Hello, World!") +}