fogfish / dynamo

Generic Golang Key/Value trait for AWS storage services
MIT License
19 stars 5 forks source link

Constrain is not a type safe #58

Closed fogfish closed 2 years ago

fogfish commented 2 years ago

The following syntax does not protect api from mixing constrains of different types

type Constrain[T Thing] interface{}

It is required

type Constrain[T Thing] interface{ TypeOf(T) }
fogfish commented 2 years ago

fixed by #59