use the standard generated comment

https://github.com/golang/go/issues/13560

Generated files are marked by a line of text that matches the regular
expression, in Go syntax:

    ^// Code generated .* DO NOT EDIT\.$ The .*

means the tool can put whatever folderol it wants in there, but the
comment must be a single line and must start with Code generated and end
with DO NOT EDIT., with a period.
This commit is contained in:
c9s 2022-01-23 14:57:45 +08:00
parent 1f18c36870
commit 407a533659

View File

@ -15,8 +15,10 @@ import (
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
) )
var wrapperTemplate = template.Must(template.New("main").Parse(`package main var wrapperTemplate = template.Must(template.New("main").Parse(`// Code generated by bbgo; DO NOT EDIT.
// DO NOT MODIFY THIS FILE. THIS FILE IS GENERATED FOR IMPORTING STRATEGIES
package main
import ( import (
"github.com/c9s/bbgo/pkg/bbgo" "github.com/c9s/bbgo/pkg/bbgo"
"github.com/c9s/bbgo/pkg/cmd" "github.com/c9s/bbgo/pkg/cmd"