format

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format struct {
	Name    string            `json:"name"`
	Type    string            `json:"type"`
	Actions map[string]string `json:"-"`
	Convert map[string]string `json:"-"`
	Mime    []string          `json:"mime"`
}

func (Format) GetOpenXMLExtension

func (f Format) GetOpenXMLExtension() string

func (Format) IsAutoConvertable

func (f Format) IsAutoConvertable() bool

func (Format) IsEditable

func (f Format) IsEditable() bool

func (Format) IsFillable

func (f Format) IsFillable() bool

func (Format) IsLossyEditable

func (f Format) IsLossyEditable() bool

func (Format) IsOpenXMLConvertable

func (f Format) IsOpenXMLConvertable() bool

func (Format) IsViewOnly

func (f Format) IsViewOnly() bool

func (Format) IsViewable

func (f Format) IsViewable() bool

type FormatManager

type FormatManager interface {
	EscapeFileName(filename string) string
	GetFormatByName(name string) (Format, bool)
	GetAllFormats() map[string]Format
}

func NewMapFormatManager

func NewMapFormatManager() (FormatManager, error)

type MapFormatManager

type MapFormatManager struct {
	// contains filtered or unexported fields
}

func (MapFormatManager) EscapeFileName

func (m MapFormatManager) EscapeFileName(filename string) string

func (MapFormatManager) GetAllFormats

func (m MapFormatManager) GetAllFormats() map[string]Format

func (MapFormatManager) GetFormatByName

func (m MapFormatManager) GetFormatByName(name string) (Format, bool)

Jump to

Keyboard shortcuts

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