[GO] Add go.mod in go-gin-server generator (#15339)

* Add go.mod

* Add test

* Generate import path

* Update samples
This commit is contained in:
Beppe Catanese
2023-05-03 05:45:24 +02:00
committed by GitHub
parent 92bcdea2fa
commit 61aadb32bd
7 changed files with 80 additions and 12 deletions

View File

@@ -13,13 +13,9 @@ import (
"log"
// WARNING!
// Change this to a fully-qualified import path
// once you place this file into your project.
// For example,
// Pass --git-repo-id and --git-user-id properties when generating the code
//
//sw "github.com/GIT_USER_ID/GIT_REPO_ID/go"
//
sw "./go"
sw "github.com/GIT_USER_ID/GIT_REPO_ID/go"
)
func main() {