Created
November 8, 2022 13:42
-
-
Save hernanhrm/000d69b52b79fc5b9a76a9f044787cb4 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 Goku struct{} | |
func NewGoku() *Goku { | |
return &Goku{} | |
} | |
func (g Goku) Kick() { | |
println("Goku kicks") | |
} | |
func (g Goku) Punch() { | |
println("Goku punches") | |
} | |
func (g Goku) Transform() { | |
println("Goku transforms into a Super Saiyan") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment