From 6a9f86e1dea6be32d15f2ec520abc1fcfe78ad9e Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Fri, 1 Sep 2017 02:18:22 -0600 Subject: sync docs after Push method example update --- docs/build/References/Overview/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/build/References/Overview/index.html') diff --git a/docs/build/References/Overview/index.html b/docs/build/References/Overview/index.html index 6766130..444b7d8 100644 --- a/docs/build/References/Overview/index.html +++ b/docs/build/References/Overview/index.html @@ -1038,13 +1038,13 @@ struct, which has a reference to an Author.

} -func (b *Book) Push() []string { +func (b *Book) Push(res http.ResponseWriter, req *http.Request) ([]string, error) { return []string{ // the json struct tag is used to tell the server which // field(s) it should push - only URL paths originating // from your server can be pushed! "author", - } + }, nil } ... @@ -1058,7 +1058,7 @@ has been made.

What else can I Push?

Only fields that are URL paths originating from your server can be pushed. This means that you could also implement item.Pushable on the Author -type, and return []string{"photo"} to push the Author's image!

+type, and return []string{"photo"}, nil to push the Author's image!


Other Considerations

-- cgit v1.2.3