You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
497 B
17 lines
497 B
package golang |
|
|
|
import ( |
|
"text/template" |
|
|
|
"github.com/lyft/protoc-gen-star" |
|
"github.com/envoyproxy/protoc-gen-validate/templates/goshared" |
|
) |
|
|
|
func Register(tpl *template.Template, params pgs.Parameters) { |
|
goshared.Register(tpl, params) |
|
template.Must(tpl.Parse(fileTpl)) |
|
template.Must(tpl.New("required").Parse(requiredTpl)) |
|
template.Must(tpl.New("timestamp").Parse(timestampTpl)) |
|
template.Must(tpl.New("duration").Parse(durationTpl)) |
|
template.Must(tpl.New("message").Parse(messageTpl)) |
|
}
|
|
|