guy176251
8c85da5472
Revert "initial attempt to integrate surf http client"
...
This reverts commit 538d52d064 .
2026-01-24 15:00:30 -06:00
guy176251
538d52d064
initial attempt to integrate surf http client
2026-01-24 14:59:48 -06:00
Vartan Benohanian
15ee94fbbe
Replace fmt.Sprint with strconv.Itoa, specify slice capacity
...
Uber's Go style guide outlines a slight performance benefit when using
strconv over fmt:
https://github.com/uber-go/guide/blob/dc025303c14891f54d1847396379548773e6123e/style.md#prefer-strconv-over-fmt
Also specifiying slice capacity when it is known beforehand:
https://github.com/uber-go/guide/blob/dc025303c14891f54d1847396379548773e6123e/style.md#specifying-slice-capacity
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com >
2020-09-29 14:01:21 -04:00
Vartan Benohanian
def7e3bdb7
Chage NewRequest methods, add multi description kind to thing
...
Since Reddit's API accepts form data as the body for most of its
endpoints, it made sense to me to make the default NewRequest method
set the request body as form data (if provided of course). The
NewJSONRequest method can accept a JSON body.
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com >
2020-09-09 23:02:06 -04:00
Vartan Benohanian
407ee432a3
Change doc comment, some very minor tweaks
...
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com >
2020-08-21 15:46:27 -04:00
Vartan Benohanian
8752bdd2d6
Create GoldService
...
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com >
2020-08-20 17:04:44 -04:00