const keyMaxLength … const keyCharFmt … const keyExtCharFmt … const qualifiedKeyFmt … var keyRegex … var ErrKeyNotFound … type Store … // ValidateKey returns an error if the given key does not meet the requirement // of the key format and length. func ValidateKey(key string) error { … }