code: func AllOptions(opts *FileStoreOptions) FileStoreOption {
  	return func(o *FileStoreOptions) error {
  		if err := BufferSize(opts.BufferSize)(o); err != nil {
  			return err
  		}
  		if err := CompactInterval(opts.CompactInterval)(o); err != nil {
  			return err
  		}
  		if err := CompactFragmentation(opts.CompactFragmentation)(o); err != nil {
  			return err
  		}
  		if err := CompactMinFileSize(opts.CompactMinFileSize)(o); err != nil {
  			return err
  		}
  		if err := CRCPolynomial(opts.CRCPolynomial)(o); err != nil {
  			return err
  		}
  		if err := SliceConfig(opts.SliceMaxMsgs, opts.SliceMaxBytes, opts.SliceMaxAge, opts.SliceArchiveScript)(o); err != nil {
  			return err
  		}
  		if err := FileDescriptorsLimit(opts.FileDescriptorsLimit)(o); err != nil {
  			return err
  		}
  		if err := ParallelRecovery(opts.ParallelRecovery)(o); err != nil {
  			return err
  		}
  		o.CompactEnabled = opts.CompactEnabled
  		o.DoCRC = opts.DoCRC
  		o.DoSync = opts.DoSync
  		o.TruncateUnexpectedEOF = opts.TruncateUnexpectedEOF
  		return nil
  	}
  }
docs: // AllOptions is a convenient option to pass all options from a FileStoreOptions
  // structure to the constructor.