package grpc import ( "log" ) type ErrorHandler struct{} func (e *ErrorHandler) Handle(err error) { if err != nil { log.Printf("error: %v", err) } }