55)
66
77// Insert a document into the table posts using a struct.
8- func ExampleTerm_Insert_Struct () {
8+ func ExampleTerm_Insert_struct () {
99 type Post struct {
1010 ID int `gorethink:"id"`
1111 Title string `gorethink:"title"`
@@ -30,7 +30,7 @@ func ExampleTerm_Insert_Struct() {
3030
3131// Insert a document without a defined primary key into the table posts where
3232// the primary key is id.
33- func ExampleTerm_Insert_GeneratedKey () {
33+ func ExampleTerm_Insert_generatedKey () {
3434 type Post struct {
3535 Title string `gorethink:"title"`
3636 Content string `gorethink:"content"`
@@ -52,7 +52,7 @@ func ExampleTerm_Insert_GeneratedKey() {
5252}
5353
5454// Insert a document into the table posts using a map.
55- func ExampleTerm_Insert_Map () {
55+ func ExampleTerm_Insert_map () {
5656 resp , err := DB ("examples" ).Table ("posts" ).Insert (map [string ]interface {}{
5757 "id" : 2 ,
5858 "title" : "Lorem ipsum" ,
@@ -70,7 +70,7 @@ func ExampleTerm_Insert_Map() {
7070}
7171
7272// Insert multiple documents into the table posts.
73- func ExampleTerm_Insert_Multiple () {
73+ func ExampleTerm_Insert_multiple () {
7474 resp , err := DB ("examples" ).Table ("posts" ).Insert ([]interface {}{
7575 map [string ]interface {}{
7676 "title" : "Lorem ipsum" ,
@@ -94,7 +94,7 @@ func ExampleTerm_Insert_Multiple() {
9494
9595// Insert a document into the table posts, replacing the document if it already
9696// exists.
97- func ExampleTerm_Insert_Upsert () {
97+ func ExampleTerm_Insert_upsert () {
9898 resp , err := DB ("examples" ).Table ("posts" ).Insert (map [string ]interface {}{
9999 "id" : 1 ,
100100 "title" : "Lorem ipsum 2" ,
@@ -129,7 +129,7 @@ func ExampleTerm_Update() {
129129}
130130
131131// Update bob's cell phone number.
132- func ExampleTerm_Update_Nested () {
132+ func ExampleTerm_Update_nested () {
133133 resp , err := DB ("examples" ).Table ("users" ).Get ("bob" ).Update (map [string ]interface {}{
134134 "contact" : map [string ]interface {}{
135135 "phone" : "408-555-4242" ,
@@ -147,7 +147,7 @@ func ExampleTerm_Update_Nested() {
147147}
148148
149149// Update the status of all posts to published.
150- func ExampleTerm_Update_All () {
150+ func ExampleTerm_Update_all () {
151151 resp , err := DB ("examples" ).Table ("posts" ).Update (map [string ]interface {}{
152152 "status" : "published" ,
153153 }).RunWrite (session )
@@ -164,7 +164,7 @@ func ExampleTerm_Update_All() {
164164
165165// Increment the field view of the post with id of 1. If the field views does not
166166// exist, it will be set to 0.
167- func ExampleTerm_Update_Increment () {
167+ func ExampleTerm_Update_increment () {
168168 resp , err := DB ("examples" ).Table ("posts" ).Get (1 ).Update (map [string ]interface {}{
169169 "views" : Row .Field ("views" ).Add (1 ).Default (0 ),
170170 }).RunWrite (session )
@@ -180,7 +180,7 @@ func ExampleTerm_Update_Increment() {
180180}
181181
182182// Update the status of the post with id of 1 using soft durability.
183- func ExampleTerm_Update_SoftDurability () {
183+ func ExampleTerm_Update_softDurability () {
184184 resp , err := DB ("examples" ).Table ("posts" ).Get (2 ).Update (map [string ]interface {}{
185185 "status" : "draft" ,
186186 }, UpdateOpts {
@@ -212,7 +212,7 @@ func ExampleTerm_Delete() {
212212}
213213
214214// Delete all comments where the field status is published
215- func ExampleTerm_Delete_Many () {
215+ func ExampleTerm_Delete_many () {
216216 resp , err := DB ("examples" ).Table ("posts" ).Filter (map [string ]interface {}{
217217 "status" : "published" ,
218218 }).Delete ().RunWrite (session )
0 commit comments