From be48b65ebe2ec0999d93ba6e547801c9059ee225 Mon Sep 17 00:00:00 2001 From: foliet Date: Thu, 27 Oct 2022 10:07:25 +0800 Subject: [PATCH 1/3] chore: update "DO NOT EDIT" format --- tools/goctl/model/mongo/template/model.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/goctl/model/mongo/template/model.tpl b/tools/goctl/model/mongo/template/model.tpl index 9265d13fdf18..31fab61094c5 100644 --- a/tools/goctl/model/mongo/template/model.tpl +++ b/tools/goctl/model/mongo/template/model.tpl @@ -1,4 +1,4 @@ -// Code generated by goctl. DO NOT EDIT! +// Code generated by goctl. DO NOT EDIT. package model import ( From 619b8260cb379ba8d5d0f8de01a324b11cd39092 Mon Sep 17 00:00:00 2001 From: foliet Date: Thu, 27 Oct 2022 10:13:01 +0800 Subject: [PATCH 2/3] Update readme.md --- tools/goctl/model/mongo/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/goctl/model/mongo/readme.md b/tools/goctl/model/mongo/readme.md index 1c19cc933457..8af5e8774cc2 100644 --- a/tools/goctl/model/mongo/readme.md +++ b/tools/goctl/model/mongo/readme.md @@ -57,7 +57,7 @@ func NewUserModel(url, db, collection string, c cache.CacheConf) UserModel { #### usermodelgen.go ```go -// Code generated by goctl. DO NOT EDIT! +// Code generated by goctl. DO NOT EDIT. package model import ( From dbc7c8b2de5cfc88fdbfb3c0b96c7eb529e536d2 Mon Sep 17 00:00:00 2001 From: foliet Date: Thu, 27 Oct 2022 10:16:06 +0800 Subject: [PATCH 3/3] Update head.go --- tools/goctl/util/head.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/goctl/util/head.go b/tools/goctl/util/head.go index 117767cf9480..017e344bea6e 100644 --- a/tools/goctl/util/head.go +++ b/tools/goctl/util/head.go @@ -2,7 +2,7 @@ package util const ( // DoNotEditHead added to the beginning of a file to prompt the user not to edit - DoNotEditHead = "// Code generated by goctl. DO NOT EDIT!" + DoNotEditHead = "// Code generated by goctl. DO NOT EDIT." headTemplate = DoNotEditHead + ` // Source: {{.source}}`