https://github.com/habedi/template-go-package
This is a template repository to make it easier to develop Go packages
https://github.com/habedi/template-go-package
go go-package golang golang-package template-repository
Last synced: 2 months ago
JSON representation
This is a template repository to make it easier to develop Go packages
- Host: GitHub
- URL: https://github.com/habedi/template-go-package
- Owner: habedi
- License: mit
- Created: 2024-09-30T19:11:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-30T19:54:32.000Z (about 1 year ago)
- Last Synced: 2025-01-09T08:13:08.877Z (9 months ago)
- Topics: go, go-package, golang, golang-package, template-repository
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Template Repository for Go Packages
[](https://github.com/habedi/template-go-package/actions/workflows/tests.yml)
[](https://goreportcard.com/report/github.com/habedi/template-go-package)
[](https://pkg.go.dev/github.com/habedi/template-go-package)
[](https://github.com/habedi/template-go-package/blob/main/LICENSE)This is a template repository to make it easier to start developing Go packages.
It includes a basic structure for a Go package plus some additional useful files like GitHub Actions for running unit
tests.I made this template to have a starting point for my Go packages and to speed up the development process. I hope it will
be useful for you as well. Feel free to use it for your projects as is or modify it to fit your needs.## Files
These files are included in the repository:
- `.github/workflows/tests.yml`: GitHub Actions workflow for running the unit tests.
- `.editorconfig`: Editor configuration file for consistent coding styles.
- `.gitignore`: A gitignore file for Go projects.
- `go.mod`: Go module file.
- `LICENSE`: License file.
- `README.md`: Readme file.
- `package.go`: Package file which includes the package code.
- `package_test.go`: Unit tests for the functions in the package file.