@austin@programming.devM to Golang@programming.devEnglish • 1 year agoGo’s best-kept secret: executable examplesbitfieldconsulting.comexternal-linkmessage-square5fedilinkarrow-up121arrow-down12cross-posted to: golang@lemmy.ml
arrow-up119arrow-down1external-linkGo’s best-kept secret: executable examplesbitfieldconsulting.com@austin@programming.devM to Golang@programming.devEnglish • 1 year agomessage-square5fedilinkcross-posted to: golang@lemmy.ml
minus-square@morgen@infosec.publinkfedilinkEnglish3•1 year agoI have not seen this before. Thanks for sharing. Do you know any projects that utilize this, so I can see an example implementation of this?
minus-square@RandomDevOpsDude@programming.devMlinkfedilinkEnglish2•1 year agoExampleEcho going to func Echo doc Example (and many more)
minus-squareOliver LowelinkEnglish2•1 year ago Do you know any projects that utilize this, so I can see an example implementation of this? The sort package in the standard library uses testable examples (source code).
minus-square@austin@programming.devOPMlinkfedilinkEnglish1•1 year agoThe go stdlib uses it a lot. For example, the strings package
I have not seen this before. Thanks for sharing. Do you know any projects that utilize this, so I can see an example implementation of this?
ExampleEcho
going to
func Echo
doc Example(and many more)
The sort package in the standard library uses testable examples (source code).
The go stdlib uses it a lot. For example, the strings package