Since tests are all written in terms of Go source, it makes tests easier to write. They still need to be arranged in a GOPATH for go build, but tests that just call Generate can operate in-place because I've faked the filesystem. Reviewed-by: Tuo Shan <shantuo@google.com> Reviewed-by: Herbie Ong <herbie@google.com>
15 lines
204 B
Go
15 lines
204 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
fmt.Println(injectedMessage())
|
|
}
|
|
|
|
//goose:provide
|
|
|
|
// provideMessage provides a friendly user greeting.
|
|
func provideMessage() string {
|
|
return "Hello, World!"
|
|
}
|