Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 670 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 670 Bytes

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.