file

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(json []byte) (structure.Structure, error)

New returns a new File structure and any error encountered.

Types

type File

type File struct {
	Filename, Content string
}

func (*File) Html

func (f *File) Html() (any, error)

Html returns the HTML representation of the File and any error encountered.

func (*File) Markdown

func (f *File) Markdown() (string, error)

Markdown returns the markdown representation of the File and any error encountered.

func (*File) Render

func (f *File) Render() (string, error)

Render returns the rendered string of the File and any error encountered.

Jump to

Keyboard shortcuts

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