extensions

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	*sequencedmap.Element[string, Extension]
}

Element represents a key/value pair of a set of extensions.

func NewElem

func NewElem(key string, value *yaml.Node) *Element

NewElem will create a new element for the extensions set.

type Extension

type Extension = *yaml.Node

Extension represents a single extension to an object, in its raw form.

type Extensions

type Extensions struct {
	*sequencedmap.Map[string, Extension]
}

Extensions represents a set of extensions to an object.

func New

func New(elements ...*Element) *Extensions

New will create a new extensions set.

func (*Extensions) Init

func (e *Extensions) Init()

Init will initialize the extensions set.

Jump to

Keyboard shortcuts

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