@@ -15,7 +15,7 @@ import (
1515)
1616
1717func main () {
18- stringInArray := []interface {} {"string in array" }
18+ stringInArray := []string {"string in array" }
1919
2020 client := appwrite .NewClient (
2121 appwrite .WithTimeout (60 * time .Second ),
@@ -27,7 +27,7 @@ func main() {
2727 testGeneralService (client , stringInArray )
2828}
2929
30- func testFooService (client client.Client , stringInArray []interface {} ) {
30+ func testFooService (client client.Client , stringInArray []string ) {
3131 foo := appwrite .NewFoo (client )
3232 // Foo Service
3333 response , err := foo .Get ("string" , 123 , stringInArray )
@@ -61,7 +61,7 @@ func testFooService(client client.Client, stringInArray []interface{}) {
6161 fmt .Printf ("%s\n " , response .Result )
6262}
6363
64- func testBarService (client client.Client , stringInArray []interface {} ) {
64+ func testBarService (client client.Client , stringInArray []string ) {
6565 bar := appwrite .NewBar (client )
6666 // Bar Service
6767 response , err := bar .Get ("string" , 123 , stringInArray )
@@ -95,7 +95,7 @@ func testBarService(client client.Client, stringInArray []interface{}) {
9595 fmt .Printf ("%s\n " , response .Result )
9696}
9797
98- func testGeneralService (client client.Client , stringInArray []interface {} ) {
98+ func testGeneralService (client client.Client , stringInArray []string ) {
9999 general := appwrite .NewGeneral (client )
100100 // General Service
101101 response , err := general .Redirect ()
@@ -147,7 +147,7 @@ func testGeneralService(client client.Client, stringInArray []interface{}) {
147147 fmt .Printf ("%s\n " , headersResponse .Result )
148148}
149149
150- func testGeneralUpload (client client.Client , stringInArray []interface {} ) {
150+ func testGeneralUpload (client client.Client , stringInArray []string ) {
151151 general := appwrite .NewGeneral (client )
152152 uploadFile := path .Join ("/app" , "tests/resources/file.png" )
153153 inputFile := file .NewInputFile (uploadFile , "file.png" )
@@ -168,7 +168,7 @@ func testGeneralDownload(client client.Client) {
168168 fmt .Printf ("%s\n " , string (* response ))
169169}
170170
171- func testLargeUpload (client client.Client , stringInArray []interface {} ) {
171+ func testLargeUpload (client client.Client , stringInArray []string ) {
172172 general := appwrite .NewGeneral (client )
173173 uploadFile := path .Join ("/app" , "tests/resources/large_file.mp4" )
174174 inputFile := file .NewInputFile (uploadFile , "large_file.mp4" )
0 commit comments