profile

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package profile provides loading and management of API style profiles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListBuiltin

func ListBuiltin() ([]string, error)

ListBuiltin returns the names of all built-in profiles.

func Load

func Load(name string) (*types.APIStyleSpec, error)

Load loads a profile by name using default search paths.

func LoadFile

func LoadFile(path string) (*types.APIStyleSpec, error)

LoadFile loads a profile from a specific file path.

Types

type Loader

type Loader struct {
	// SearchPaths are directories to search for profiles.
	SearchPaths []string
}

Loader loads and resolves API style profiles.

func NewLoader

func NewLoader() *Loader

NewLoader creates a new profile loader.

func (*Loader) Load

func (l *Loader) Load(name string) (*types.APIStyleSpec, error)

Load loads a profile by name. It first checks built-in profiles, then searches the filesystem.

Jump to

Keyboard shortcuts

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