austin@programming.dev to Go programming language discussionEnglish · 2 years agoGo’s best-kept secret: executable examplesbitfieldconsulting.comexternal-linkmessage-square2fedilinkarrow-up19arrow-down11cross-posted to: golang@programming.dev
arrow-up18arrow-down1external-linkGo’s best-kept secret: executable examplesbitfieldconsulting.comaustin@programming.dev to Go programming language discussionEnglish · 2 years agomessage-square2fedilinkcross-posted to: golang@programming.dev
minus-squarewhouMlinkfedilinkEnglisharrow-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