// Automatically generated by internal/cmd/genreadfile/main.go. DO NOT EDIT

package jwe

import "os"

// ReadFileOption describes options that can be passed to ReadFile.
// Currently there are no options available that can be passed to ReadFile, but
// it is provided here for anticipated future additions
type ReadFileOption interface {
	Option
	readFileOption()
}

func ReadFile(path string, _ ...ReadFileOption) (*Message, error) {
	f, err := os.Open(path)
	if err != nil {
		return nil, err
	}

	defer f.Close()
	return ParseReader(f)
}
