Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/eduardgomezescandell/crtp-in-go

Showing that CRTP is possible in Go
https://github.com/eduardgomezescandell/crtp-in-go

Last synced: 13 days ago
JSON representation

Showing that CRTP is possible in Go

Awesome Lists containing this project

README

        

# Curiously recurring template pattern
This is a pattern in C++ where a base class has its derived class as
a template parameter. See [example.cpp](./example.cpp).

I wondered whether something similar would work in Go. Sure enough, it works!
This repo shows an example. See [example.go](./example.go).