2021-08-30 16:48:57 +02:00
|
|
|
package template
|
|
|
|
|
|
|
|
// Module is the go.mod template used for new projects.
|
2021-09-10 14:20:57 +02:00
|
|
|
var Module = `module {{.Vendor}}{{.Service}}{{if .Client}}-client{{end}}
|
2021-08-30 16:48:57 +02:00
|
|
|
|
|
|
|
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.
|
2021-09-03 14:26:34 +02:00
|
|
|
replace google.golang.org/grpc => google.golang.org/grpc v1.26.0{{if .Vendor}}{{if not .Skaffold}}
|
2021-09-03 13:33:10 +02:00
|
|
|
|
2021-09-10 14:20:57 +02:00
|
|
|
replace {{.Vendor}}{{lower .Service}} => ../{{lower .Service}}{{end}}{{end}}
|
2021-08-30 16:48:57 +02:00
|
|
|
`
|