auth/vendor/github.com/lestrrat-go/jwx/jws/io.go

24 lines
542 B
Go

// Automatically generated by internal/cmd/genreadfile/main.go. DO NOT EDIT
package jws
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)
}