Skip to content

Demonstrates the unique properties of type methods in Go

Notifications You must be signed in to change notification settings

drgrib/type-method-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

This is a demo of one of the most confusing but useful topics in Go: how methods are attached to types rather than classes, unlike other modern languages like C++, Python, and Java.

The tests can be executed using

go test -v

About

Demonstrates the unique properties of type methods in Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages