(cmd string, args ...string)
| 42 | ) |
| 43 | |
| 44 | func buildGoArgs(cmd string, args ...string) []string { |
| 45 | if goTags != "" { |
| 46 | args = append([]string{fmt.Sprintf("-tags=%s", goTags)}, args...) |
| 47 | } |
| 48 | return append([]string{cmd}, args...) |
| 49 | } |
| 50 | |
| 51 | func execGoFrom(dir string, stdout, stderr io.Writer, cmd string, args ...string) error { |
| 52 | return execFrom(dir, nil, stdout, stderr, "go", buildGoArgs(cmd, args...)...) |