code: func SliceConfig(maxMsgs int, maxBytes int64, maxAge time.Duration, script string) FileStoreOption {
  	return func(o *FileStoreOptions) error {
  		if maxMsgs < 0 || maxBytes < 0 || maxAge < 0 {
  			return fmt.Errorf("slice max values must be positive numbers")
  		}
  		o.SliceMaxMsgs = maxMsgs
  		o.SliceMaxBytes = maxBytes
  		o.SliceMaxAge = maxAge
  		o.SliceArchiveScript = script
  		return nil
  	}
  }
docs: // SliceConfig is a FileStore option that allows the configuration of
  // file slice limits and optional archive script file name.