activity/tools/streams/main.go
2018-06-13 22:01:53 +02:00

22 行
412 B
Go

package main
import (
"github.com/go-fed/activity/tools/defs"
"github.com/go-fed/activity/tools/streams/gen"
"io/ioutil"
)
func main() {
allTypes := append(defs.AllCoreTypes, defs.AllExtendedTypes...)
files, err := gen.GenerateConvenienceTypes(allTypes)
if err != nil {
panic(err)
}
for _, f := range files {
err = ioutil.WriteFile(f.Name, f.Content, 0666)
if err != nil {
panic(err)
}
}
}