Fun with Go's generics and receiver functions

Опубликовано: 23 Январь 2024
на канале: Dominic St-Pierre
464
11

A quick demonstration on how to have generics receiver functions attached to a generics type. It can be useful in some situation, like I'm using that technique in StaticBackend for CRUD functions on a certain type.

If you like that format, I have two online courses for Go (Build a Google Analytics in Go and Build SaaS apps in Go). Here's a direct link with a special discount for YouTube: https://dominicstpierre.com/product/b...