Help us shape the future of Go! Take the 2026 Go Developer Survey

extensions

package
v0.0.4 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: 3

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