mirror of
https://github.com/foomo/gograpple.git
synced 2025-10-16 12:35:37 +00:00
14 lines
256 B
Go
14 lines
256 B
Go
package exec
|
|
|
|
type GoCmd struct {
|
|
Cmd
|
|
}
|
|
|
|
func NewGoCommand() *GoCmd {
|
|
return &GoCmd{*NewCommand("go")}
|
|
}
|
|
|
|
func (c GoCmd) Build(output string, inputs []string, flags ...string) *Cmd {
|
|
return c.Args("build", "-o", output).Args(flags...).Args(inputs...)
|
|
}
|