Golayout TCBS



Follow this introduction

https://github.com/techcomsecurities/golayout

after getting it, you should check in your go/bin and see the golayout excutable file

In linux, use this command line

./golayout gen -n ~/Workspace/go/crud -m gits.tcbs.com.vn/service/crud

After successful excution, it will generate your project which structure by gomodule

+-- api
|   +-- home.go
|   +-- server.go
|   +-- user.go
+-- app
|   +-- <<YOUR_PROJECT_NAME>>
|   |   +-- cmd
+-- service
|   +-- main.go
+-- conf
|   +-- config.yml
+-- store
|   +-- imdbuser.go
|   +-- sqluser.go
|   +-- store.go
+-- user
|   +-- userinfo.go
+-- uuid
|   +-- gen.go
+-- config.go
+-- go.mod
+-- store.go
+-- user.go

To run the app, using this command line
cd <<YOUR_PROJECT_NAME>>
go run app/service/main.go -c conf/config.yml



Comments

Popular posts from this blog

Fixing the DeepSpeed Import Error While Fine-Tuning the Qwen Model

Amazon Linux 2023 - User data configuration for launch templates to connect to the EKS cluster

How to create ISM policy and rotate logs in opensearch