We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Multiple Interfaces

A type can implement any number of interfaces in Go. For example, the empty interface, interface{}, is always implemented by every type because it has no requirements.

Assignment

Complete the required methods so that the email type implements both the expense and formatter interfaces.

Complete the cost() method:

Complete the format() method.

'CONTENT' | Subscribed
'CONTENT' | Not Subscribed

The single quotes are included in the string, and CONTENT is the email's body. For example:

'Hello, World!' | Subscribed

You may want to import the fmt package and use Sprintf.