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:
@@ -4,8 +4,10 @@ package main
|
||||
|
||||
import (
|
||||
stdcontext "context"
|
||||
|
||||
"codename/goose"
|
||||
)
|
||||
|
||||
//goose:use provide
|
||||
|
||||
func inject(context stdcontext.Context, err struct{}) (context, error)
|
||||
func inject(context stdcontext.Context, err struct{}) (context, error) {
|
||||
panic(goose.Use(provide))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user