mirror of
https://github.com/foomo/gotsrpc.git
synced 2026-04-15 02:04:25 +00:00
11 lines
381 B
Go
11 lines
381 B
Go
package gotsrpc
|
|
|
|
// errorReply is a marker wrapper that identifies error interface returns in response slices.
|
|
type errorReply struct{ err error }
|
|
|
|
// ErrorReply wraps an error return value so Reply can detect it at runtime.
|
|
// Used by generated proxy code for methods whose last return type is the error interface.
|
|
func ErrorReply(err error) any {
|
|
return &errorReply{err: err}
|
|
}
|