Must a type explicitly declare that it implements an interface? *Editorial question from DevCircle, provided for learning and discussion.*
Loading page content…
Real questions. Helpful answers. A little collective wisdom.
Must a type explicitly declare that it implements an interface? *Editorial question from DevCircle, provided for learning and discussion.*
I want cleanup to run when a function exits. When are deferred calls executed? *Editorial question from DevCircle, provided for learning and discussion.*
How can I run a function concurrently, and does it get its own operating-system thread? *Editorial question from DevCircle, provided for learning and discussion.*
A function returns both a value and an error. What should the caller do? *Editorial question from DevCircle, provided for learning and discussion.*
Why do functions usually accept slices rather than fixed-length arrays? *Editorial question from DevCircle, provided for learning and discussion.*