1// +build mage 2 3package main 4 5import ( 6 "fmt" 7 "log" 8 9 "github.com/magefile/mage/mg" 10) 11 12// This should work as a default - even if it's in a different file 13var Default = ReturnsNilError 14 15// this should not be a target because it returns a string 16func ReturnsString() string { 17 fmt.Println("more stuff") 18 return "" 19} 20 21func TestVerbose() { 22 log.Println("hi!") 23} 24 25func ReturnsVoid() { 26 mg.Deps(f) 27} 28 29func f() {} 30