mirror of
https://github.com/magefile/mage.git
synced 2026-10-24 06:19:18 +03:00
24 lines
321 B
Go
24 lines
321 B
Go
// +build mage
|
|
|
|
package main
|
|
|
|
import "github.com/magefile/mage/mg"
|
|
|
|
type Build mg.Namespace
|
|
|
|
func (Build) Foobar() error {
|
|
// do your foobar build
|
|
return nil
|
|
}
|
|
|
|
func (Build) Baz() {
|
|
// do your baz build
|
|
}
|
|
|
|
type Init mg.Namespace
|
|
|
|
func (Init) Foobar() error {
|
|
// do your foobar defined in init namespace
|
|
return nil
|
|
}
|