goose: use marker functions instead of comments
To avoid making this CL too large, I did not migrate the existing goose comments through the repository. This will be addressed in a subsequent CL. Reviewed-by: Tuo Shan <shantuo@google.com>
This commit is contained in:
9
internal/goose/testdata/Vendor/foo/goose.go
vendored
9
internal/goose/testdata/Vendor/foo/goose.go
vendored
@@ -3,9 +3,10 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "bar"
|
||||
"bar"
|
||||
"codename/goose"
|
||||
)
|
||||
|
||||
//goose:use "bar".Message
|
||||
|
||||
func injectedMessage() string
|
||||
func injectedMessage() string {
|
||||
panic(goose.Use(bar.ProvideMessage))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user