| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -649,17 +649,23 @@ class ReceiverDecl extends FieldBase, Documentable, ExprParent { | |||
| 649 | 649 | * Examples: | |
| 650 | 650 | * | |
| 651 | 651 | * ```go | |
| 652 | + * int | ||
| 653 | + * string | ||
| 652 | 654 | * error | |
| 653 | 655 | * r io.Reader | |
| 656 | + * output string | ||
| 657 | + * err error | ||
| 654 | 658 | * x, y int | |
| 655 | 659 | * ``` | |
| 656 | 660 | * | |
| 657 | 661 | * as in the following code: | |
| 658 | 662 | * | |
| 659 | 663 | * ```go | |
| 660 | - * func f(error) { return nil } | ||
| 661 | - * func g(r io.Reader) { return nil } | ||
| 662 | - * func h(x, y int) { return } | ||
| 664 | + * func f1() int { return 0 } | ||
| 665 | + * func f2(input string) (string, error) { return "", nil } | ||
| 666 | + * func f3(a int) (r io.Reader) { return nil } | ||
| 667 | + * func f4(input string) (output string, err error) { return} | ||
| 668 | + * func f5(e error) (x, y int) { return } | ||
| 663 | 669 | * ``` | |
| 664 | 670 | */ | |
| 665 | 671 | class ResultVariableDecl extends ParameterOrResultDecl { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments