corin8823 / fcm-builder

topic builder of Firebase Cloud Messaging (FCM)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fcm-builder

Build Status

topic builder of Firebase Cloud Messaging (FCM) for golang

usage

// Build condition for fcm
cond, err := ToCondition(CondNot{CondTopic{"NewUserTopic"}}.And(CondTopic{"MaleUserTopic"}))
if err != nil {
    log.Fatal(err)
}

fmt.Printf("Topic string: %d", cond)
// "Topic string: !('NewUserTopic' in topics) && 'MaleUserTopic' in topics"

Acknowledgments

Inspired by go-xorm/builder

License

fcm-builder is available under the MIT license. See the LICENSE file for more info.

About

topic builder of Firebase Cloud Messaging (FCM)

License:MIT License


Languages

Language:Go 100.0%