codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Follow publication

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Published in codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Written by Fanis Despoudis

Senior Software Engineer @teckro, Experienced mentor @codeinstitute, @hack.hands, Technical Writer @fixate.io Tweet me at @nerdokto.

Responses (2)

Hi, Great post!!
Just to point out — It’s Gandhi, not Gandi.

--

When you use interface embedding as in your example, you’re also coupling the interfaces. Often, it’s better to use naked methods of the embedded interfaces, instead of composing the interfaces (if they are in separate packages or not in Go stdlib).

--