Either use switch completely or make it more simpler, like:

```
func New(settype SetType) Interface {
	if settype == NonThreadSafe {
		return newNonTS()
	}
	return newTS()
}
```