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.
This commit is contained in:
liangzy 2024-07-18 17:18:45 +08:00
parent 21161bee1c
commit a03430e03f
2 changed files with 22 additions and 1 deletions

16
.gitignore vendored
View File

@ -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

7
main.go Normal file
View File

@ -0,0 +1,7 @@
package hertz_scaffold
import "fmt"
func main() {
fmt.Println("Hello, World!")
}