this post was submitted on 27 Jun 2023
5 points (85.7% liked)

Go programming language discussion

1449 readers
1 users here now

founded 5 years ago
MODERATORS
top 2 comments
sorted by: hot top controversial new old
[–] whou@lemmy.ml 2 points 2 years ago (1 children)

it's weird that this is such an awesome and unique feature that I've never seen mentioned in any tutorial.

I certainly wonder how many people wrote example documentation while having no idea this feature existed... I know I almost was one of them.

[–] austin@programming.dev 2 points 2 years ago

I agree it’s unique and not really talked about. It kinda reminds me of Elixir’s doctest