2025-07-19 13:21:35 -04:00
2025-07-19 13:21:35 -04:00
2025-07-19 13:21:35 -04:00
2025-07-19 13:21:35 -04:00
2025-07-19 13:21:35 -04:00
2025-07-19 13:21:35 -04:00

Go Application Template

Structure

my-lib/ ├── lib1/ # Individual importable library. Duplicate as needed │ ├── lib1.go │ └── lib1_test.go └── internal/ └── pkg1/ # Internal use package. Duplicate as needed ├── pgk1.go └── pgk1_test.go

Use

  • git clone git.develent.net/wiharb/go-template-lib.git [project-name]
  • cd ./[project-name]
  • rm -rf ./.git
  • Rename and duplicate lib1 and internal/pkg1 as needed
  • go mod init [package_name]
  • Update ./.vscode/launch.json::"program" to the correct path(s); probably a lib test
  • 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
Description
No description provided
Readme MIT 28 KiB
Languages
Go 100%