@@ -15,7 +15,7 @@ import (
15
15
)
16
16
17
17
func main () {
18
- stringInArray := []interface {} {"string in array" }
18
+ stringInArray := []string {"string in array" }
19
19
20
20
client := appwrite .NewClient (
21
21
appwrite .WithTimeout (60 * time .Second ),
@@ -27,7 +27,7 @@ func main() {
27
27
testGeneralService (client , stringInArray )
28
28
}
29
29
30
- func testFooService (client client.Client , stringInArray []interface {} ) {
30
+ func testFooService (client client.Client , stringInArray []string ) {
31
31
foo := appwrite .NewFoo (client )
32
32
// Foo Service
33
33
response , err := foo .Get ("string" , 123 , stringInArray )
@@ -61,7 +61,7 @@ func testFooService(client client.Client, stringInArray []interface{}) {
61
61
fmt .Printf ("%s\n " , response .Result )
62
62
}
63
63
64
- func testBarService (client client.Client , stringInArray []interface {} ) {
64
+ func testBarService (client client.Client , stringInArray []string ) {
65
65
bar := appwrite .NewBar (client )
66
66
// Bar Service
67
67
response , err := bar .Get ("string" , 123 , stringInArray )
@@ -95,7 +95,7 @@ func testBarService(client client.Client, stringInArray []interface{}) {
95
95
fmt .Printf ("%s\n " , response .Result )
96
96
}
97
97
98
- func testGeneralService (client client.Client , stringInArray []interface {} ) {
98
+ func testGeneralService (client client.Client , stringInArray []string ) {
99
99
general := appwrite .NewGeneral (client )
100
100
// General Service
101
101
response , err := general .Redirect ()
@@ -147,7 +147,7 @@ func testGeneralService(client client.Client, stringInArray []interface{}) {
147
147
fmt .Printf ("%s\n " , headersResponse .Result )
148
148
}
149
149
150
- func testGeneralUpload (client client.Client , stringInArray []interface {} ) {
150
+ func testGeneralUpload (client client.Client , stringInArray []string ) {
151
151
general := appwrite .NewGeneral (client )
152
152
uploadFile := path .Join ("/app" , "tests/resources/file.png" )
153
153
inputFile := file .NewInputFile (uploadFile , "file.png" )
@@ -168,7 +168,7 @@ func testGeneralDownload(client client.Client) {
168
168
fmt .Printf ("%s\n " , string (* response ))
169
169
}
170
170
171
- func testLargeUpload (client client.Client , stringInArray []interface {} ) {
171
+ func testLargeUpload (client client.Client , stringInArray []string ) {
172
172
general := appwrite .NewGeneral (client )
173
173
uploadFile := path .Join ("/app" , "tests/resources/large_file.mp4" )
174
174
inputFile := file .NewInputFile (uploadFile , "large_file.mp4" )
0 commit comments