-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
812 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,52 @@ | ||
package mapmode | ||
|
||
import "github.com/celt237/go-annotation/internal/test/data" | ||
|
||
// InterfaceTwo test | ||
// @annotation(id="1", name="test") | ||
type InterfaceTwo interface { | ||
// Method1 test1 | ||
// @annotation | ||
Method1(a1 *data.A1, a2 *data.A2, a3 *data.A3) error | ||
|
||
// Method2 test2 | ||
// @annotation(name="test") | ||
Method2(a2 data.A2) (a3 *data.A3, err error) | ||
|
||
// Method3 test3 | ||
// @annotation(name="test") | ||
Method3() (data.A1, error) | ||
|
||
// Method4 test4 | ||
// @annotation(name="test", des="test2") | ||
Method4(a3 *data.A3) | ||
} | ||
|
||
// StructTwo test | ||
// @annotation(id="1", name="test") | ||
type StructTwo struct { | ||
} | ||
|
||
// Method1 test1 | ||
// @annotation | ||
func (s *StructTwo) Method1(a1 *data.A1, a2 *data.A2, a3 *data.A3) error { | ||
return nil | ||
} | ||
|
||
// Method2 test2 | ||
// @annotation(name="test") | ||
func (s *StructTwo) Method2(a2 data.A2) (a3 *data.A3, err error) { | ||
return nil, nil | ||
} | ||
|
||
// Method3 test3 | ||
// @annotation(name="test") | ||
func (s *StructTwo) Method3() (data.A1, error) { | ||
return data.A1{}, nil | ||
} | ||
|
||
// Method4 test4 | ||
// @annotation(name="test", des="test2") | ||
func (s *StructTwo) Method4(a3 *data.A3) { | ||
return | ||
} |
Oops, something went wrong.