austin@programming.dev to Go programming language discussion@lemmy.mlEnglish · 1 year agoGo’s best-kept secret: executable examplesbitfieldconsulting.comexternal-linkmessage-square2fedilinkarrow-up16arrow-down11
arrow-up15arrow-down1external-linkGo’s best-kept secret: executable examplesbitfieldconsulting.comaustin@programming.dev to Go programming language discussion@lemmy.mlEnglish · 1 year agomessage-square2fedilink
minus-squarewhou@lemmy.mlMlinkfedilinkEnglisharrow-up2·1 year 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-squareaustin@programming.devOPlinkfedilinkEnglisharrow-up2·1 year 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