From 07128213d609eb6f22588641411e5617441299f9 Mon Sep 17 00:00:00 2001 From: foliet Date: Thu, 27 Oct 2022 19:41:24 +0800 Subject: [PATCH] chore: update "DO NOT EDIT" format (#2559) * chore: update "DO NOT EDIT" format * Update readme.md * Update head.go --- tools/goctl/model/mongo/readme.md | 2 +- tools/goctl/model/mongo/template/model.tpl | 2 +- tools/goctl/util/head.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/goctl/model/mongo/readme.md b/tools/goctl/model/mongo/readme.md index 1c19cc93..8af5e877 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 ( diff --git a/tools/goctl/model/mongo/template/model.tpl b/tools/goctl/model/mongo/template/model.tpl index 9265d13f..31fab610 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 ( diff --git a/tools/goctl/util/head.go b/tools/goctl/util/head.go index 117767cf..017e344b 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}}`