Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Created January 15, 2022 08:08
Show Gist options
  • Save percybolmer/884f03cb9de39b3e71a7a26fdbd393d9 to your computer and use it in GitHub Desktop.
Save percybolmer/884f03cb9de39b3e71a7a26fdbd393d9 to your computer and use it in GitHub Desktop.
// Move is a generic function that takes in a Moveable and moves it
func Move[V Moveable](v V, meters int) {
v.Move(meters)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment