Skip to content

A repository hosting a collection of Go project templates.

Notifications You must be signed in to change notification settings

tiagomelo/go-templates

Repository files navigation

go-templates

logo

A repository hosting a collection of Go project templates.

These templates are designed to provide a solid starting point for various types of Go projects, promoting best practices and efficient development.

templates

  • example-rest-api: A fully functional REST API for managing books. Utilizes Gorilla Mux, middleware, validator for input validation, and features comprehensive API documentation with Swagger.

  • example-grpc-crud-service: A fully functional gRPC service. Utilizes Google's gRPC framework, Google's Protocol Buffers and validator for input validation.

  • example-grpc-crud-service-with-tls: A fully functional gRPC service, using TLS.

More templates coming soon.

using gonew with go-templates

gonew is an experimental tool for creating new projects in Go from predefined templates. It simplifies the project setup process, allowing you to quickly clone and start working on a new project.

To clone a template from go-templates:

gonew github.com/tiagomelo/go-templates/example-rest-api

If you want to specify your own module name,

gonew github.com/tiagomelo/go-templates/example-rest-api yourmodulepath/myproject

For more information about gonew, check out the Go blog.

contributing

Contributions to expand and improve the templates are welcome. Feel free to fork, submit pull requests, or open issues for new template ideas or enhancements.

About

A repository hosting a collection of Go project templates.

Resources

Stars

Watchers

Forks

Packages