An open API service indexing awesome lists of open source software.

https://github.com/drgrib/type-method-demo

Demonstrates the unique properties of type methods in Go
https://github.com/drgrib/type-method-demo

go golang methods types

Last synced: 29 days ago
JSON representation

Demonstrates the unique properties of type methods in Go

Awesome Lists containing this project

README

          

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
```