Dependency updates

This commit is contained in:
Stash Dev
2019-05-27 12:34:26 -07:00
parent 69917999ef
commit 4b037e1040
359 changed files with 60172 additions and 18749 deletions

22
vendor/github.com/gobuffalo/gogen/append.go generated vendored Normal file
View File

@@ -0,0 +1,22 @@
package gogen
import (
"strings"
"github.com/gobuffalo/genny"
"github.com/pkg/errors"
)
// Append allows to append source into a go file
func Append(gf genny.File, expressions ...string) (genny.File, error) {
pf, err := ParseFile(gf)
if err != nil {
return gf, errors.WithStack(err)
}
gf = pf.File
pf.Lines = append(pf.Lines, expressions...)
fileContent := strings.Join(pf.Lines, "\n")
return genny.NewFile(gf.Name(), strings.NewReader(fileContent)), nil
}