@@ -25,9 +25,6 @@ import (
2525
2626func main () {
2727 storageClient := storage_go.NewClient (" https://<project-reference-id>.supabase.co/storage/v1" , " <project-secret-api-key>" , nil )
28-
29- // Another way
30- storage_go.NewClient (" https://<project-reference-id>.supabase.co/storage/v1" , " " , )
3128}
3229```
3330
@@ -39,8 +36,8 @@ func main() {
3936
4037``` go
4138 result , err := storageClient.CreateBucket (" bucket-id" , storage_go.BucketOptions {
42- Public : true ,
43- })
39+ Public : true ,
40+ })
4441```
4542
4643- Retrieve the details of an existing Storage bucket:
@@ -53,8 +50,8 @@ func main() {
5350
5451``` go
5552 result , err := storageClient.UpdateBucket (" bucket-id" , storage_go.BucketOptions {
56- Public : true ,
57- })
53+ Public : true ,
54+ })
5855```
5956
6057- Remove all objects inside a single bucket:
@@ -95,13 +92,13 @@ func main() {
9592
9693``` go
9794 result , err := storageClient.ListFiles (" bucket-id" , " " , storage_go.FileSearchOptions {
98- Limit : 10 ,
99- Offset : 0 ,
100- SortByOptions : storage_go.SortBy {
101- Column: " " ,
102- Order: " " ,
103- },
104- })
95+ Limit : 10 ,
96+ Offset : 0 ,
97+ SortByOptions : storage_go.SortBy {
98+ Column: " " ,
99+ Order: " " ,
100+ },
101+ })
105102```
106103
107104> Note: The ` list ` method also accepts a map of optional parameters.
@@ -132,7 +129,6 @@ func main() {
132129 const expireIn = 60
133130
134131 result , err := storageClient.CreateSignedUrl (" test" , " test.mp4" , expireIn)
135-
136132```
137133
138134- Retrieve URLs for assets in public buckets:
@@ -147,7 +143,7 @@ func main() {
147143 fileBody := ... // load your file here
148144
149145 resp , err := storageClient.CreateSignedUploadUrl (" test" , " test.txt" )
150- res , err := storageClient.UploadToSignedUrl (resp.Url , file)
146+ res , err := storageClient.UploadToSignedUrl (resp.Url , file)
151147```
152148
153149## License
0 commit comments