Files
gotsrpc/errorreply.go
Kevin Franklin Kim 115f2b236b refactor: split files
2026-03-15 22:24:16 +01:00

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}
}