Skip to content

corin8823/fcm-builder

Repository files navigation

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)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages