Documentation
¶
Index ¶
- func DecodeData(location string, data []byte, out interface{}) error
- func DecodeFile(filename string, out interface{}) error
- func DecodeURL(ctx context.Context, fs afs.Service, url string, out interface{}, ...) error
- func MarshalMarkdown(metadata []byte, messages []MarkdownMessage) ([]byte, error)
- type MarkdownDocument
- type MarkdownMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeData ¶
DecodeData decodes YAML or JSON bytes into out based on the supplied path. Non-JSON extensions default to YAML.
func DecodeFile ¶
DecodeFile reads a local YAML/JSON resource file and decodes it into out.
func DecodeURL ¶
func DecodeURL(ctx context.Context, fs afs.Service, url string, out interface{}, options ...storage.Option) error
DecodeURL reads a filesystem-backed YAML/JSON resource and decodes it into out.
func MarshalMarkdown ¶ added in v0.1.57
func MarshalMarkdown(metadata []byte, messages []MarkdownMessage) ([]byte, error)
Types ¶
type MarkdownDocument ¶ added in v0.1.57
func ParseMarkdown ¶ added in v0.1.57
func ParseMarkdown(raw []byte) (MarkdownDocument, error)
type MarkdownMessage ¶ added in v0.1.57
MarkdownMessage and MarkdownDocument retain Core's local loader API while Forge supplies the shared grammar used by AIStudio and other producers.
Click to show internal directories.
Click to hide internal directories.