Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/eduardgomezescandell/crtp-in-go
- Owner: EduardGomezEscandell
- Created: 2023-09-08T08:33:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-08T09:11:19.000Z (over 1 year ago)
- Last Synced: 2024-11-07T10:53:30.361Z (2 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).