pet

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pet

type Pet struct{}

func New

func New() *Pet

New return new Pet

func (*Pet) Decode added in v0.4.0

func (p *Pet) Decode(in io.Reader, group string) (snippet.Snippets, error)

func (*Pet) Export

func (p *Pet) Export(snippets snippet.Snippets, dest string) error

func (*Pet) Load

func (p *Pet) Load(src string) (snippet.Snippets, error)

type Snippet

type Snippet struct {
	Command     string   `toml:"command"`
	Description string   `toml:"description"`
	Output      string   `toml:"output"`
	Tag         []string `toml:"tag"`
}

type Snippets

type Snippets struct {
	Snippets []Snippet `toml:"snippets"`
}

Jump to

Keyboard shortcuts

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