Introduce

Tinh Tinh is a framework for building effcient scalable Golang server side applications. It is a Nest expired web framework built on top of net/http for Go. Designed to ease things up for fast development with zero memory allocation and performance in mind.

These docs for Tinh Tinh, which was released on September 15th, 2024.

Installation

First of all, download and install Go 1.22 or higher is required.

Init your go module:

go mod init your-package

Installation is done use the go get command:

go get -u github.com/tinh-tinh/tinhtinh

Install cli to easy to init project.

go install github.com/tinh-tinh/tinhtinh-cli@latest

After then

tinhtinh-cli init

The structure folder will be in:

Here's a brief overview of those core files:

  • app_controller.go: A basic controller with a simple route.

  • app_service.go: A basic service with crud method.

  • app_module.go: The root module of the application.

  • main.go: the entry file of the application which uses the core function `CreateFactory` to create a application instance.

Last updated