activity/tools/vocab/main.go

20 行
410 B
Go
Raw 通常表示 履歴

2018-01-24 08:00:59 +09:00
package main
import (
"github.com/go-fed/activity/tools/defs"
"github.com/go-fed/activity/tools/vocab/gen"
"io/ioutil"
)
func main() {
allTypes := append(defs.AllCoreTypes, defs.AllExtendedTypes...)
b, err := gen.GenerateImplementations(allTypes, defs.AllPropertyTypes, defs.AllValueTypes)
if err != nil {
panic(err)
}
err = ioutil.WriteFile("vocab.go", b, 0666)
if err != nil {
panic(err)
}
}