fs

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: MIT Imports: 17 Imported by: 0

README

banner

ci release go report card license go version release

Installation

Download the binary from GitHub Releases.

Or, if you have Go, you can install fs with the following command.

go get github.com/skmatz/fs/...

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

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

func New

func New(path string) (*FS, error)

type Snippet

type Snippet struct {
	ID      string `toml:"id"`
	Name    string `toml:"name"`
	Content string `toml:"content"`
	Path    string `toml:"path"`
	URL     string `toml:"url"`

	ColoredContent string
}

func (*Snippet) ExecuteTemplate

func (s *Snippet) ExecuteTemplate(data map[string]string) error

func (*Snippet) ListTemplateFields

func (s *Snippet) ListTemplateFields() []string

func (*Snippet) ToClipboard

func (s *Snippet) ToClipboard() error

func (*Snippet) ToFile

func (s *Snippet) ToFile() error

Directories

Path Synopsis
cmd
fs

Jump to

Keyboard shortcuts

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