Browse Source

Update README.md

Volodymyr Tkach 2 years ago
parent
commit
d5f8e05760
1 changed files with 6 additions and 1 deletions
  1. 6 1
      README.md

+ 6 - 1
README.md

@@ -42,10 +42,15 @@ RowExists(ctx context.Context, id int64, row any) bool
 Please mark structure fields for using this funcs:
 
 ```go
-type User struct {
+type structUser struct {
     ID   int64  `field:"id" table:"users"`
     Name string `field:"name"`
 }
+
+var rowUser structUser
+if err := db.DeleteRowByID(context.Background(), 1, rowUser); err != nil {
+    fmt.Printf("%s\n", err.Error())
+}
 ```
 
 ## Examples