文件名称:goflow:用于RapidPro的Golang Flow Engine
文件大小:986KB
文件格式:ZIP
更新时间:2024-03-02 19:23:45
messaging flowspec flows Go
流量 规范 有关完整的规范文档,请参见。 基本用法 import ( "github.com/nyaruka/goflow/assets/static" "github.com/nyaruka/goflow/flows" "github.com/nyaruka/goflow/flows/engine" "github.com/nyaruka/goflow/utils" ) env := envs . NewBuilder (). Build () source , _ := static . LoadSource ( "myassets.json" ) assets , _ := engine . NewSessionAssets ( env , source , nil ) contact := flows. NewContact ( assets , .