feat(comment): add comment on on interface method
This commit is contained in:
parent
26207b1928
commit
3cd45c45a3
9 changed files with 91 additions and 13 deletions
6
spec/fixtures/comment/interface_many_method_input.go
vendored
Normal file
6
spec/fixtures/comment/interface_many_method_input.go
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
package main
|
||||
|
||||
type Testinger interface {
|
||||
Get(id string) int
|
||||
Set(id string, val int)
|
||||
}
|
||||
7
spec/fixtures/comment/interface_many_method_output.go
vendored
Normal file
7
spec/fixtures/comment/interface_many_method_output.go
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
package main
|
||||
|
||||
type Testinger interface {
|
||||
Get(id string) int
|
||||
// Set
|
||||
Set(id string, val int)
|
||||
}
|
||||
5
spec/fixtures/comment/interface_method_input.go
vendored
Normal file
5
spec/fixtures/comment/interface_method_input.go
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
package main
|
||||
|
||||
type Testinger interface {
|
||||
Method(input string) error
|
||||
}
|
||||
6
spec/fixtures/comment/interface_method_output.go
vendored
Normal file
6
spec/fixtures/comment/interface_method_output.go
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
package main
|
||||
|
||||
type Testinger interface {
|
||||
// Method
|
||||
Method(input string) error
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue