austin to Go programming language discussion@lemmy.mlEnglish · 2 years agoGo’s best-kept secret: executable examplesbitfieldconsulting.comexternal-linkmessage-square2fedilinkarrow-up15arrow-down11cross-posted to: golang
arrow-up14arrow-down1external-linkGo’s best-kept secret: executable examplesbitfieldconsulting.comaustin to Go programming language discussion@lemmy.mlEnglish · 2 years agomessage-square2fedilinkcross-posted to: golang
minus-squarewhou@lemmy.mlMlinkfedilinkEnglisharrow-up2·2 years agoit’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.
minus-squareaustinOPlinkfedilinkEnglisharrow-up2·2 years agoI agree it’s unique and not really talked about. It kinda reminds me of Elixir’s doctest
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.
I agree it’s unique and not really talked about. It kinda reminds me of Elixir’s doctest