Added frequencies.go generation

This commit is contained in:
Manuel Carmona
2017-05-25 12:33:26 +02:00
parent a63c8bdf81
commit fcf30a07c8
17 changed files with 258239 additions and 24 deletions

View File

@ -21,6 +21,14 @@ func FromFile(fileToParse, outPath, tmplPath, tmplName, commit string, generate
return err
}
if err := formatedWrite(outPath, source); err != nil {
return err
}
return nil
}
func formatedWrite(outPath string, source []byte) error {
formatedSource, err := format.Source(source)
if err != nil {
return err