We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dd18c6 commit abda254Copy full SHA for abda254
annotated.go
@@ -1164,6 +1164,9 @@ var _ Annotation = (*asAnnotation)(nil)
1164
// return w, r
1165
// }
1166
//
1167
+// As entirely replaces the default return types of a function. In order
1168
+// to maintain the original return types when using As, see [Self].
1169
+//
1170
// As annotation cannot be used in a function that returns an [Out] struct as a return type.
1171
func As(interfaces ...interface{}) Annotation {
1172
return &asAnnotation{targets: interfaces}
0 commit comments