/gotips-talk-2018

"Did you know that..." talk. Go-Israel meetup, Jan 2018

Primary LanguageGo

"Did you know that..." talk.

  1. Introduction - "feel the audience".

  2. Make the nil receiver useful - Example.

  3. copy - The most "unpopular" built-in function, after complex/imag/real - Examples.

  4. Anonymous structs, anonymous interfaces, and interface validation.

  5. Typed function that implements an interface (show only if more than 5 people in the audience don't know that) - Example.

  6. Control parallelism. limit the number of goroutines - Example.

  7. Relative imports - Example.

  8. Shadowing. run vet -shadow - Example.

  9. close channel to notify many. but be careful from the gotcha (closed channel always true in select) - Example.

  10. Panic-Recover flow control example - Example.

  11. Embed interface. sort.Reverse example - Example.

  12. Few words about 1.10 release.

    • strings.Builder - why, and what it solves.
    • File.SetDeadline
    • json.IgnoreUnknownFields
    • And more..

Suggestions for next meetups:

  • Some tips to organize your table driven tests.
  • Go schedular more cooperative than preemptive.
  • Explain the reflect package.
  • Compiler optimization.