Skip to content

Instantly share code, notes, and snippets.

View nakagami's full-sized avatar

Hajime Nakagami nakagami

View GitHub Profile
@ponkotuy
ponkotuy / main.go
Created March 17, 2024 11:35
Golang Genericsサンプル(単方向リスト)
package main
import (
"fmt"
"golang.org/x/exp/constraints"
)
type List[T any] struct {
head *T