Skip to content

Commit aef2f2f

Browse files
authored
Update README.md [skip ci]
1 parent f439ea7 commit aef2f2f

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

README.md

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -61,24 +61,16 @@ client.Resources.Delete(ctx, "path_to_file", false, nil)
6161
// Get meta information
6262
client.Resources.Meta(ctx, "path_to_file", nil)
6363

64-
// Update information
64+
// Update meta information
65+
newMeta := &disk.Metadata{
66+
"custom_properties": {
67+
"key": "value",
68+
"foo": "bar",
69+
"platform": "linux",
70+
},
71+
}
6572
client.Resources.UpdateMeta(ctx, "path_to_file", newMeta)
6673

67-
<details>
68-
<summary>Example</summary>
69-
```go
70-
newMeta := &disk.Metadata{
71-
"custom_properties": {
72-
"key": "value",
73-
"foo": "bar",
74-
"platform": "linux",
75-
},
76-
}
77-
78-
client.Resources.UpdateMeta(ctx, "path_to_file", newMeta)
79-
```
80-
</details>
81-
8274
// Create directory
8375
client.Resources.CreateDir(ctx, "path_to_file", nil)
8476

0 commit comments

Comments
 (0)