Sirchat is a Golang Framework or plugin to build Sirclo Chat Apps in a flash with the latest platform features. Sirchat can customize the order and appearance of information and guide users through your apps capabilities by initial your blocks, updating, composing, and stacking blocks.
Read the documentation to explore the basic and advanced concepts of Sirchat for Golang.
go install github.com/sirclo-solution/sirchat
or
go get -u github.com/sirclo-solution/sirchat
Create an app by calling the constructor, which is a top-level export.
app := apps.NewApps(apps.AppConfig{
AppSecret: SECRET_KEY,
})
// Example Command
app.Command("/exampleOne", commandHandler func(c context.Context) (interface{}, error){
/* Process logic here */
})
// start service
app.Start(apps.AppServerConfig{
Port: "8080",
})
See a more complete example of using the block kit here