Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(options pkgopenapi.LoaderOptions) pkgopenapi.Loader
New constructs a Loader from pre-resolved options.
Types ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader implements pkgopenapi.Loader by delegating to file, fs.FS, or HTTP strategies. Construction helpers live in the top-level formgen package.
func (*Loader) Load ¶
func (l *Loader) Load(ctx context.Context, src pkgopenapi.Source) (pkgopenapi.Document, error)
Load fetches a document from the provided source and wraps it in a Document.
Click to show internal directories.
Click to hide internal directories.