loader

package
v0.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(rootDir string) (*model.Spec, error)

Load reads the API specification from the provided root directory

func LoadFromBytes

func LoadFromBytes(bytes []byte) (*model.Spec, error)

LoadFromBytes reads the API specification from the provided bytes in either YAML or JSON format

func LoadFromDir

func LoadFromDir(rootDir string, apiFileName string) (*model.Spec, error)

LoadFromDir reads the API specification from the provided root directory

func LoadFromDirRoot

func LoadFromDirRoot(rootDir string) (*model.Spec, error)

LoadFromDirRoot reads the API specification from the provided root directory

func LoadWithName

func LoadWithName(rootDir, apiFileName string) (*model.Spec, error)

LoadWithName reads the API specification from the provided root directory

Types

This section is empty.

Source Files

  • json.go
  • loader.go
  • yaml.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL