@@ -77,7 +77,7 @@ func (at *Client) rateLimit() {
7777 <- at .rateLimiter
7878}
7979
80- func (at * Client ) get (ctx context.Context , db , table , recordID string , params url.Values , target interface {} ) error {
80+ func (at * Client ) get (ctx context.Context , db , table , recordID string , params url.Values , target any ) error {
8181 at .rateLimit ()
8282
8383 url := fmt .Sprintf ("%s/%s/%s" , at .baseURL , db , table )
@@ -103,7 +103,7 @@ func (at *Client) get(ctx context.Context, db, table, recordID string, params ur
103103 return nil
104104}
105105
106- func (at * Client ) post (ctx context.Context , db , table string , data , response interface {} ) error {
106+ func (at * Client ) post (ctx context.Context , db , table string , data , response any ) error {
107107 at .rateLimit ()
108108
109109 url := fmt .Sprintf ("%s/%s/%s" , at .baseURL , db , table )
@@ -124,7 +124,7 @@ func (at *Client) post(ctx context.Context, db, table string, data, response int
124124 return at .do (req , response )
125125}
126126
127- func (at * Client ) delete (ctx context.Context , db , table string , recordIDs []string , target interface {} ) error {
127+ func (at * Client ) delete (ctx context.Context , db , table string , recordIDs []string , target any ) error {
128128 at .rateLimit ()
129129
130130 rawURL := fmt .Sprintf ("%s/%s/%s" , at .baseURL , db , table )
@@ -152,7 +152,7 @@ func (at *Client) delete(ctx context.Context, db, table string, recordIDs []stri
152152 return nil
153153}
154154
155- func (at * Client ) patch (ctx context.Context , db , table , data , response interface {} ) error {
155+ func (at * Client ) patch (ctx context.Context , db , table , data , response any ) error {
156156 at .rateLimit ()
157157
158158 url := fmt .Sprintf ("%s/%s/%s" , at .baseURL , db , table )
@@ -173,7 +173,7 @@ func (at *Client) patch(ctx context.Context, db, table, data, response interface
173173 return at .do (req , response )
174174}
175175
176- func (at * Client ) put (ctx context.Context , db , table , data , response interface {} ) error {
176+ func (at * Client ) put (ctx context.Context , db , table , data , response any ) error {
177177 at .rateLimit ()
178178
179179 url := fmt .Sprintf ("%s/%s/%s" , at .baseURL , db , table )
@@ -194,7 +194,7 @@ func (at *Client) put(ctx context.Context, db, table, data, response interface{}
194194 return at .do (req , response )
195195}
196196
197- func (at * Client ) do (req * http.Request , response interface {} ) error {
197+ func (at * Client ) do (req * http.Request , response any ) error {
198198 if req == nil {
199199 return errors .New ("nil request" )
200200 }
0 commit comments