From 46995a4d7ddf73fbd60d0153f391ddbca56b65c7 Mon Sep 17 00:00:00 2001 From: miaogaolin <57740293+miaogaolin@users.noreply.github.com> Date: Mon, 21 Sep 2020 18:27:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8D=E8=83=BD=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E4=BB=A3=E7=A0=81=E6=B3=A8=E9=87=8A=20(#92)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * rename file and function name * update comments of "code generate" --- example/bookstore/api/internal/handler/routes.go | 2 +- example/bookstore/api/internal/types/types.go | 2 +- example/graceful/dns/api/handler/routes.go | 2 +- example/graceful/dns/api/types/types.go | 2 +- example/graceful/etcd/api/handler/routes.go | 2 +- example/graceful/etcd/api/types/types.go | 2 +- example/shorturl/api/internal/handler/routes.go | 2 +- example/shorturl/api/internal/types/types.go | 2 +- tools/goctl/api/gogen/genroutes.go | 2 +- tools/goctl/api/gogen/gentypes.go | 2 +- tools/goctl/api/javagen/gencomponents.go | 2 +- tools/goctl/api/tsgen/gencomponents.go | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/example/bookstore/api/internal/handler/routes.go b/example/bookstore/api/internal/handler/routes.go index 5ff3eb908c15..651305e82714 100644 --- a/example/bookstore/api/internal/handler/routes.go +++ b/example/bookstore/api/internal/handler/routes.go @@ -1,4 +1,4 @@ -// DO NOT EDIT, generated by goctl +// Code generated by goctl. DO NOT EDIT. package handler import ( diff --git a/example/bookstore/api/internal/types/types.go b/example/bookstore/api/internal/types/types.go index 4e341616bd08..a7bf3c2df13d 100644 --- a/example/bookstore/api/internal/types/types.go +++ b/example/bookstore/api/internal/types/types.go @@ -1,4 +1,4 @@ -// DO NOT EDIT, generated by goctl +// Code generated by goctl. DO NOT EDIT. package types type AddReq struct { diff --git a/example/graceful/dns/api/handler/routes.go b/example/graceful/dns/api/handler/routes.go index 67db4faf2833..4b5c900bdfde 100644 --- a/example/graceful/dns/api/handler/routes.go +++ b/example/graceful/dns/api/handler/routes.go @@ -1,4 +1,4 @@ -// DO NOT EDIT, generated by goctl +// Code generated by goctl. DO NOT EDIT. package handler import ( diff --git a/example/graceful/dns/api/types/types.go b/example/graceful/dns/api/types/types.go index 5143ec78de13..cb22125d4082 100644 --- a/example/graceful/dns/api/types/types.go +++ b/example/graceful/dns/api/types/types.go @@ -1,4 +1,4 @@ -// DO NOT EDIT, generated by goctl +// Code generated by goctl. DO NOT EDIT. package types type Response struct { diff --git a/example/graceful/etcd/api/handler/routes.go b/example/graceful/etcd/api/handler/routes.go index 6471488c0225..6b3d605d0b89 100644 --- a/example/graceful/etcd/api/handler/routes.go +++ b/example/graceful/etcd/api/handler/routes.go @@ -1,4 +1,4 @@ -// DO NOT EDIT, generated by goctl +// Code generated by goctl. DO NOT EDIT. package handler import ( diff --git a/example/graceful/etcd/api/types/types.go b/example/graceful/etcd/api/types/types.go index 5143ec78de13..cb22125d4082 100644 --- a/example/graceful/etcd/api/types/types.go +++ b/example/graceful/etcd/api/types/types.go @@ -1,4 +1,4 @@ -// DO NOT EDIT, generated by goctl +// Code generated by goctl. DO NOT EDIT. package types type Response struct { diff --git a/example/shorturl/api/internal/handler/routes.go b/example/shorturl/api/internal/handler/routes.go index 8fb946954ab2..6384a84e41d2 100644 --- a/example/shorturl/api/internal/handler/routes.go +++ b/example/shorturl/api/internal/handler/routes.go @@ -1,4 +1,4 @@ -// DO NOT EDIT, generated by goctl +// Code generated by goctl. DO NOT EDIT. package handler import ( diff --git a/example/shorturl/api/internal/types/types.go b/example/shorturl/api/internal/types/types.go index 47bf216e89e4..3ae348c18743 100644 --- a/example/shorturl/api/internal/types/types.go +++ b/example/shorturl/api/internal/types/types.go @@ -1,4 +1,4 @@ -// DO NOT EDIT, generated by goctl +// Code generated by goctl. DO NOT EDIT. package types type ExpandReq struct { diff --git a/tools/goctl/api/gogen/genroutes.go b/tools/goctl/api/gogen/genroutes.go index e77787b25c31..4e74562625c1 100644 --- a/tools/goctl/api/gogen/genroutes.go +++ b/tools/goctl/api/gogen/genroutes.go @@ -17,7 +17,7 @@ import ( const ( routesFilename = "routes.go" - routesTemplate = `// DO NOT EDIT, generated by goctl + routesTemplate = `// Code generated by goctl. DO NOT EDIT. package handler import ( diff --git a/tools/goctl/api/gogen/gentypes.go b/tools/goctl/api/gogen/gentypes.go index 4098018761eb..65f0a724781d 100644 --- a/tools/goctl/api/gogen/gentypes.go +++ b/tools/goctl/api/gogen/gentypes.go @@ -16,7 +16,7 @@ import ( const ( typesFile = "types.go" - typesTemplate = `// DO NOT EDIT, generated by goctl + typesTemplate = `// Code generated by goctl. DO NOT EDIT. package types{{if .containsTime}} import ( "time" diff --git a/tools/goctl/api/javagen/gencomponents.go b/tools/goctl/api/javagen/gencomponents.go index 79a646d36097..dac2aa2e9d83 100644 --- a/tools/goctl/api/javagen/gencomponents.go +++ b/tools/goctl/api/javagen/gencomponents.go @@ -13,7 +13,7 @@ import ( ) const ( - componentTemplate = `// DO NOT EDIT, generated by goctl + componentTemplate = `// Code generated by goctl. DO NOT EDIT. package com.xhb.logic.http.packet.{{.packet}}.model; import com.xhb.logic.http.DeProguardable; diff --git a/tools/goctl/api/tsgen/gencomponents.go b/tools/goctl/api/tsgen/gencomponents.go index 8a5d1d7a3787..0606eb82c6c8 100644 --- a/tools/goctl/api/tsgen/gencomponents.go +++ b/tools/goctl/api/tsgen/gencomponents.go @@ -12,7 +12,7 @@ import ( ) const ( - componentsTemplate = `// DO NOT EDIT, generated by goctl + componentsTemplate = `// Code generated by goctl. DO NOT EDIT. {{.componentTypes}} `