package
module
Version:
v0.0.0-...-afb5167
Opens a new window with list of versions in this module.
Published: Jun 24, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func JSON(snippets []*snippet.Snippet, indented bool) ([]byte, error)
-
func JSON101(snippets []*snippet.Snippet, indented bool) ([]byte, error)
-
func ReadFile(filename string) (string, int, []*snippet.Snippet, error)
-
func WriteFile(filename string, snippets []*snippet.Snippet) error
-
func WriteIndentedVersionFile(filename string, snippets []*snippet.Snippet, indented bool, version int) error
JSON creates export formatted output.
JSON101 creates export formatted output compatible with Snippet Pixie v1.x.
ReadFile from previous export, returning file generator, version and snippets.
WriteFile exports snippets to file using the latest format.
WriteIndentedVersionFile exports snippets to file with or without indent and using specified version.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.