@kazhuravlev Hi Kirill, thanks for your kind message! Both work and personal life have been quite hectic the last months, hope to get back to writing soon ๐
@JanKremlacek@golangch No worries, I had to double check as well, the wording in the official docs is not very clear.
Using the word "adjust" makes it look like this is something that happens on the fly to me.
@JanKremlacek@golangch Hi! Author here. As far as I understand `b.N` is not modified during the benchmark, but each benchmark might be run multiple times with different values for `b.N`.
Official docs also use the `for range b.N` syntax:
https://t.co/gahtvBgVdp
I joined @ShayNehmad and Jonathan Hall on @Cup_O_Go earlier this week.
We talked about everything from cycling infrastructure to freelancing and web dev. Was a lot of fun!
Give it a listen and subscribe to the podcast to stay on top of Go news :)
โ Just published a new episode of Cup o' Go: ๐ฌ๏ธ Air, Windows, and Shelves; Promise this is about Go! Plus, https://t.co/8LDsKJRMGo talks freelance Go Web Development. Listen: https://t.co/hrJltQQzfo
Just realized I haven't shared this yet. Wrote a post earlier this week:
Always use httptest when testing HTTP handlers in #golang, your results might be inaccurate otherwise.
Check it out!
https://t.co/bnzQSKIkxx
Back to writing after a little break :)
Yesterday I wrote this post about Sets in #golang. It's probably the situation where I use the empty struct the most.
Check it out here:
https://t.co/daA42FYzKu
Fixed it:
https://t.co/s1kGgM8Qsx
While checking why the deployment failed, I was too hasty and confused my initial "deploy the initial environment script" with a "deploy this container script".
It's a fresh start I guess? ๐ฅฒ
First I'll do a bug fix.
To test things I registered a new account, and it seems something is going wrong with the session flash messages.
They should only be shown once, but they don't always get cleared between requests.
After that it's onwards with househunt.
I got a very nice email with another suggestion to use HTMX for the frontend.
So I will look into that once we need to build the admin panel and/or listings pages. Those will involve some more interactive things.
I know it's a bit quiet on the househunt side of things at the moment. But I will get back to it soon.
Currently trying to get my upcoming guide into a beta state. I expect to be working on that for the coming 2 weeks.
https://t.co/GFbr8yfRlo
#golang
@OleksandrKhomin@MattJamesBoyle It's definitely not as concise as struct tags and will require some scrolling ;-)
But has some advantages:
- Can navigate to relevant code in editor.
- Can map env vars to structs defined in other packages.
If you need to support many diff sources of config I'd consider a lib.