Created
November 8, 2022 13:40
-
-
Save hernanhrm/065bc1fc65d802bca0bad218c7d73da6 to your computer and use it in GitHub Desktop.
This file contains 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
type Warrior interface { | |
Kick() | |
Punch() | |
Transform() | |
} | |
type Warriors []Warrior | |
func executeWithoutIPS(warriors Warriors) { | |
for _, warrior := range warriors { | |
warrior.Kick() | |
warrior.Punch() | |
warrior.Transform() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment