mirror of
https://github.com/magefile/mage.git
synced 2026-10-24 06:19:18 +03:00
17 lines
292 B
Go
17 lines
292 B
Go
// +build mage
|
|
|
|
package main
|
|
|
|
import "fmt"
|
|
|
|
// This should work as a default - even if it's in a different file
|
|
var Default = ReturnsError
|
|
|
|
// this should not be a target because it returns a string
|
|
func ReturnsString() string {
|
|
fmt.Println("more stuff")
|
|
return ""
|
|
}
|
|
|
|
func ReturnsVoid() {}
|