Files
go-template-app/README.md
2025-07-19 13:12:35 -04:00

26 lines
801 B
Markdown

# Go Application Template
## Structure
my-app/
├── cmd/
│ └── app1/ # Individual target binary. Duplicate as needed
│ ├── app1.go
│ └── app1_test.go
└── internal/
└── pkg1/ # Internal use package. Duplicate as needed
├── pgk1.go
└── pgk1_test.go
## Use
- `git clone git.develent.net/wiharb/go-template-app.git`
- `rm -rf ./.git`
- Rename and duplicate `cmd/app1` and `internal/pkg1` as needed
- `go mod init [package_name]`
- Update `./.vscode/launch.json::"program"` to the correct binary path(s)
- Reinitialize git
- `git init`
- `git add .`
- `git commit -m "init"`
- `git remote add origin http://[user]:[token]@git.develenet.net/wiharb/[repo].git`
- `git push -u origin master`