Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Interfaces in Go

Interfaces in Go

Speaker
Audi
Data Engineer at SpaceStock

Ngalam Backend Community

July 21, 2020
Tweet

More Decks by Ngalam Backend Community

Other Decks in Technology

Transcript

  1. Go Proverbs on Interface • the bigger the interface, the

    weaker the abstraction • interface{} says nothing • accept interfaces, return structs
  2. Takeaways • be lazy whenever you can • refrain from

    defining interface • if you need, define interface in consumer