Created
November 2, 2016 18:14
-
-
Save cep21/323f6a73f1e024bba712cf9eb5be8861 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package app | |
type Totaller interface { | |
Subtotal() float64 | |
} | |
type Renderable interface { | |
RenderPage(t Totaller) | |
} | |
func RunApplication(t Totaller, r Renderable) { | |
r.RenderPage(t) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment