Skip to content

Instantly share code, notes, and snippets.

@jcelliott
Created September 8, 2013 18:48
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 jcelliott/6487360 to your computer and use it in GitHub Desktop.
Save jcelliott/6487360 to your computer and use it in GitHub Desktop.
package main
import "fmt"
type Vehicle struct{}
func (v Vehicle) Move() {
fmt.Println("vehicle moving")
}
func main() {
new(Vehicle).Move()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment