Skip to content

Instantly share code, notes, and snippets.

@hernanhrm
Created November 8, 2022 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hernanhrm/000d69b52b79fc5b9a76a9f044787cb4 to your computer and use it in GitHub Desktop.
Save hernanhrm/000d69b52b79fc5b9a76a9f044787cb4 to your computer and use it in GitHub Desktop.
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