handle google.protobuf.timestamp
This commit is contained in:
		
							
								
								
									
										10
									
								
								examples/time/templates/time.go.tmpl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								examples/time/templates/time.go.tmpl
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
// Code generated by protoc-gen-gotemplate
 | 
			
		||||
package {{.File.Package}}
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
    "github.com/golang/protobuf/ptypes/timestamp"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type Repository interface {
 | 
			
		||||
    {{range $m := .Service.Method}}{{with $t := $m.InputType | getMessageType $.File}} {{$m.Name}}({{range $f := $t.Field}}{{$f.Name|lowerCamelCase}} {{$f| goTypeWithPackage }} {{end}}) ({{with $out := $m.OutputType | getMessageType $.File}}{{range $f := $out.Field}}{{$f | goTypeWithPackage}}, {{end}}{{end}} error){{end}}{{end}}
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user