サンプルコード: - https://go.dev/play/p/z5Sv88yHAqs 参考文献: - https://go.googlesource.com/proposal/+/refs/heads/master/design/generics-implementation-gcshape.md - https://zenn.dev/syumai/articles/77bc12aca9b654 - https://speakerdeck.com/dqneo/go-language-underlying-type 準標準系ライブラリ: - https://pkg.go.dev/golang.org/x/exp/slices - https://pkg.go.dev/golang.org/x/exp/maps - https://pkg.go.dev/golang.org/x/exp/c