mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-25 02:08:44 +08:00
f0ed2370a3
* fix #1014 * remove unused code * * optimize generate pb.go on Windows * format code * optimize console.go * version rollback Co-authored-by: anqiansong <anqiansong@bytedance.com>
22 lines
475 B
Go
22 lines
475 B
Go
package generator
|
|
|
|
import (
|
|
"github.com/tal-tech/go-zero/tools/goctl/util/console"
|
|
)
|
|
|
|
// DefaultGenerator defines the environment needs of rpc service generation
|
|
type DefaultGenerator struct {
|
|
log console.Console
|
|
}
|
|
|
|
// just test interface implement
|
|
var _ Generator = (*DefaultGenerator)(nil)
|
|
|
|
// NewDefaultGenerator returns an instance of DefaultGenerator
|
|
func NewDefaultGenerator() Generator {
|
|
log := console.NewColorConsole()
|
|
return &DefaultGenerator{
|
|
log: log,
|
|
}
|
|
}
|