mirror of
https://github.com/go-micro/go-micro.git
synced 2025-05-25 21:53:14 +02:00
There's really no point in having the `generator` be embedded in a `file` package so we remove the `file` package and make the `generator` package a first class citizen instead.
18 lines
569 B
Go
18 lines
569 B
Go
package template
|
|
|
|
// Module is the go.mod template used for new projects.
|
|
var Module = `module {{.Vendor}}{{.Service}}{{if .Client}}-client{{end}}
|
|
|
|
go 1.16
|
|
|
|
require (
|
|
github.com/asim/go-micro/v3 v3.5.2
|
|
)
|
|
|
|
// This can be removed once etcd becomes go gettable, version 3.4 and 3.5 is not,
|
|
// see https://github.com/etcd-io/etcd/issues/11154 and https://github.com/etcd-io/etcd/issues/11931.
|
|
replace google.golang.org/grpc => google.golang.org/grpc v1.26.0{{if .Vendor}}{{if not .Skaffold}}
|
|
|
|
replace {{.Vendor}}{{lower .Service}} => ../{{lower .Service}}{{end}}{{end}}
|
|
`
|