go-mapseqs
is a library for working with map-like sequential data in Go, taking advantage of generics introduced in Go 1.18.
Add the library as a dependency:
go get github.com/siliconbrain/go-mapseqs
Import it into your code:
import "github.com/siliconbrain/go-mapseqs/mapseqs"
Use to your heart's delight!