From 5b0301935d2491454b6d36bb12f5aa5d9d55a138 Mon Sep 17 00:00:00 2001 From: Vic Shostak Date: Wed, 5 Jan 2022 18:24:29 +0300 Subject: [PATCH] Add go-chi backend template --- README.md | 3 +++ pkg/registry/defaults.go | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 01fc5a7..13933d7 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,9 @@ cgapp deploy [OPTION] - [`net/http`](https://github.com/create-go-app/net_http-go-template) — simple REST API with CRUD and JWT auth. - Backend template with [Fiber](https://github.com/gofiber/fiber): - [`fiber`](https://github.com/create-go-app/fiber-go-template) — complex REST API with CRUD, JWT auth with renew token, DB and cache. +- Backend template with [go-chi](https://github.com/go-chi/chi): + - [`chi`](https://github.com/create-go-app/chi-go-template) — a basic application with health + check. ### Frontend diff --git a/pkg/registry/defaults.go b/pkg/registry/defaults.go index 1b02816..1ed3269 100644 --- a/pkg/registry/defaults.go +++ b/pkg/registry/defaults.go @@ -11,7 +11,7 @@ import ( ) // CLIVersion version of Create Go App CLI. -const CLIVersion string = "3.3.1" +const CLIVersion string = "3.3.2" // Variables struct for Ansible variables (inventory, hosts). type Variables struct { @@ -48,9 +48,10 @@ var ( Options: []string{ "net/http", "fiber", + "chi", }, Default: "fiber", - PageSize: 2, + PageSize: 3, }, Validate: survey.Required, },