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

basic

package
v2.0.0-alpha-3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicTemplateData

type BasicTemplateData struct {
	Schema  string          `json:"schema"`
	Entries []*declcfg.Meta `json:"entries"`
}

func FromReader

func FromReader(r io.Reader) (*BasicTemplateData, error)

FromReader reads FBC from a reader and generates a BasicTemplateData from it

type Factory

type Factory struct{}

Factory represents the basic template factory

func (*Factory) CreateTemplate

func (f *Factory) CreateTemplate(renderBundle api.BundleRenderer) api.Template

CreateTemplate creates a new template instance with the given RenderBundle function

func (*Factory) Schema

func (f *Factory) Schema() string

Schema returns the schema supported by this factory

func (*Factory) Type

func (f *Factory) Type() string

Type returns the registration type for this template

Jump to

Keyboard shortcuts

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