Skip to content
This repository has been archived by the owner on Mar 31, 2019. It is now read-only.

Commit

Permalink
Merge pull request #76 from fabienfoerster/update-readme
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
zabawaba99 committed Jan 19, 2017
2 parents 1607ec4 193c559 commit b4befb1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 130,22 @@ for event := range notifications {
fmt.Printf("Event %#v\n", event)
}
fmt.Printf("Notifications have stopped")
```
### Change reference

You can use a reference to save or read data from a specified reference

```go
userID := "bar"
usersRef,err := f.Ref("users/" userID)
if err != nil {
log.Fatal(err)
}
v := map[string]string{"id":userID}
if err := usersRef.Set(v); err != nil {
log.Fatal(err)
}

```

Check the [GoDocs](http://godoc.org/gopkg.in/zabawaba99/firego.v1) or
Expand Down

0 comments on commit b4befb1

Please sign in to comment.