key.go 192 B

12345678910
  1. package ezdb
  2. // ValidateKey validates whether a key is valid for putting data into a collection.
  3. func ValidateKey(key string) error {
  4. if key == "" {
  5. return ErrInvalidKey
  6. }
  7. return nil
  8. }