Skip to content

Commit

Permalink
DoPks fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfsdhgjkbmnmxc committed Feb 20, 2022
1 parent 8c46d4e commit 81b14d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

func UUID() string { return gouuidv6.New().String() }

func DoPks[PK, R interface{ Pk() PK }](l []R) []PK {
func DoPks[PK iPK, R interface{ Pk() PK }](l []R) []PK {
pks := make([]PK, len(l))
for i, r := range l {
pks[i] = r.Pk()
Expand Down

0 comments on commit 81b14d8

Please sign in to comment.