formats

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const Tag feature.Tag = "pages-formats"

Variables

This section is empty.

Functions

This section is empty.

Types

type CFeature

type CFeature struct {
	feature.CFeature
	// contains filtered or unexported fields
}

func (*CFeature) AddFormat

func (f *CFeature) AddFormat(formats ...types.Format) MakeFeature

func (*CFeature) Defaults

func (f *CFeature) Defaults() MakeFeature

func (*CFeature) GetFormat

func (f *CFeature) GetFormat(extn string) (format types.Format)

func (*CFeature) Init

func (f *CFeature) Init(this interface{})

func (*CFeature) ListFormats added in v0.1.0

func (f *CFeature) ListFormats() (names []string)

func (*CFeature) Make

func (f *CFeature) Make() Feature

func (*CFeature) MatchFormat

func (f *CFeature) MatchFormat(filename string) (format types.Format, match string)

func (*CFeature) Setup

func (f *CFeature) Setup(enjin feature.Internals)

type Feature

type Feature interface {
	feature.Feature
	types.FormatProvider
}

type MakeFeature

type MakeFeature interface {
	Defaults() MakeFeature
	AddFormat(formats ...types.Format) MakeFeature

	Make() Feature
}

func New

func New() MakeFeature

Jump to

Keyboard shortcuts

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