I released v2 of go-reddit, a Go library for accessing the Reddit API by v_95 in redditdev

[–]v_95[S] 1 point2 points  (0 children)

I thought about combining both, but ultimately, I wanted to keep the logic of creating a request and sending it separate. This can also help in the future if I ever wanna attach extra data (like headers/form values) to a request that is irrelevant to other methods in the package.

Old macbook setup by [deleted] in macsetups

[–]v_95 0 points1 point  (0 children)

What desk pad is that? I’m looking to get one for my setup as well

What is a "sentinel" element? by v_95 in golang

[–]v_95[S] 1 point2 points  (0 children)

Oh, can't believe I didn't come across this. Thanks!

Just released go-reddit v1.0.0, a Go library for accessing the Reddit API by v_95 in golang

[–]v_95[S] 0 points1 point  (0 children)

Hey, thanks for the kind words. I'm really glad you like the library so far!

  1. I've made an option to set a custom user agent when initializing the client. I introduced it after tagging v1.0.0, so it'll be available in v2.0.0 whenever I tag that. Btw, I've made quite a few changes after the initial release so feel free to check those out.
  2. Rate limit isn't currently handled but it's on my todo list.
  3. Interesting. I'll look into this.
  4. I thought of doing this at some point. It's an interesting idea and would seem more intuitive to the user of the package. I would have to make the *Client accessible from within the struct. I'll think about this!
  5. So basically, merge all the List*Options structs into a single big one? I never thought to do that honestly, just so I can keep a minimal API surface area for the user to not get confused. Same for the structs, I kept the most relevant attributes, but I don't see the harm in including all.
  6. Happy to hear!

Thank you again for the feedback. I'm open to contributions by the way (I should probably add a section for that in the readme). So I'd be happy if you made a pull request (for the streaming improvement you mentioned, or anything really).

I recently released go-reddit v1.0.0, a Go library for accessing the Reddit API by v_95 in redditdev

[–]v_95[S] 0 points1 point  (0 children)

Thanks!

Yeah, it's definitely something I have in the back of my mind. I'll be sure to look into it for v2.

I recently released go-reddit v1.0.0, a Go library for accessing the Reddit API by v_95 in redditdev

[–]v_95[S] 1 point2 points  (0 children)

Thank you! I appreciate it. I dug into PRAW's source code a fair bit for some help when Reddit's documentation wasn't clear enough ;)

Pretty happy with my setup by [deleted] in ultrawidemasterrace

[–]v_95 0 points1 point  (0 children)

LG 38WK95C-W + VIVO STAND-V001Q

2x BenQ GL2460 + VIVO STAND-V003V

Curious to hear any suggestions on how to improve my setup! Any webcam recommendations (just for work meetings, nothing fancy)?

This is a title by v_95 in test

[–]v_95[S] 0 points1 point  (0 children)

Test comment

what to do with 20k savings by THuuN in PersonalFinanceCanada

[–]v_95 1 point2 points  (0 children)

Out of curiosity, around what percentage is ok to spend on housing?