doc gofmt

This commit is contained in:
alessio 2016-08-21 20:30:11 +02:00
parent 7f3ed8f2da
commit d4dc21217f

View File

@ -112,6 +112,7 @@ func (p *Project) GoInstall() error {
return nil return nil
} }
// GoFmt is an implementation of the gofmt
func (p *Project) GoFmt() (io.Writer, error) { func (p *Project) GoFmt() (io.Writer, error) {
var out bytes.Buffer var out bytes.Buffer
build := exec.Command("gofmt", "-s", "-w", "-e", ".") build := exec.Command("gofmt", "-s", "-w", "-e", ".")