SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
austin@programming.devM to Golang@programming.devEnglish · 2 years ago

Go’s best-kept secret: executable examples

bitfieldconsulting.com

external-link
message-square
5
fedilink
  • cross-posted to:
  • golang@lemmy.ml
19
external-link

Go’s best-kept secret: executable examples

bitfieldconsulting.com

austin@programming.devM to Golang@programming.devEnglish · 2 years ago
message-square
5
fedilink
  • cross-posted to:
  • golang@lemmy.ml
Go’s best-kept secret: executable examples — Bitfield Consulting
bitfieldconsulting.com
external-link
Did you know that Go lets us provide executable code examples as part of our documentation? It’s pretty neat. Let’s take a tour of this useful feature and see how it works.
  • Oliver Lowe
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 years ago

    There’s also Testable Examples in Go from the official Go blog.

Golang@programming.dev

golang@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !golang@programming.dev

This is a community dedicated to the go programming language.

Useful Links:

  • Go Website
  • Effective Go
  • Go by Example
  • How to Start a Go Project

Rules:

  • Posts must be relevant to Go
  • No NSFW content
  • No hate speech, bigotry, etc
  • Try to keep discussions on topic
  • No spam of tools/companies/advertisements
  • It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 42 users / week
  • 79 users / month
  • 187 users / 6 months
  • 28 local subscribers
  • 2.43K subscribers
  • 181 Posts
  • 304 Comments
  • Modlog
  • mods:
  • Ategon@programming.dev
  • RandomDevOpsDude@programming.dev
  • austin@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org