mirror of
https://github.com/foomo/gotsrpc.git
synced 2026-04-21 21:24:25 +00:00
19 lines
251 B
Go
19 lines
251 B
Go
package service
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
type Handler struct{}
|
|
|
|
func (h *Handler) Time(v time.Time) time.Time {
|
|
fmt.Println(v.String())
|
|
return v
|
|
}
|
|
|
|
func (h *Handler) TimeStruct(v TimeStruct) TimeStruct {
|
|
fmt.Println(v.Time.String())
|
|
return v
|
|
}
|