export

package module
v0.0.0-...-afb5167 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(snippets []*snippet.Snippet, indented bool) ([]byte, error)

JSON creates export formatted output.

func JSON101

func JSON101(snippets []*snippet.Snippet, indented bool) ([]byte, error)

JSON101 creates export formatted output compatible with Snippet Pixie v1.x.

func ReadFile

func ReadFile(filename string) (string, int, []*snippet.Snippet, error)

ReadFile from previous export, returning file generator, version and snippets.

func WriteFile

func WriteFile(filename string, snippets []*snippet.Snippet) error

WriteFile exports snippets to file using the latest format.

func WriteIndentedVersionFile

func WriteIndentedVersionFile(filename string, snippets []*snippet.Snippet, indented bool, version int) error

WriteIndentedVersionFile exports snippets to file with or without indent and using specified version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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