storage

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidURL = errors.New("not a valid URL")
)

Functions

func Path added in v0.2.0

func Path() string

Types

type Kind

type Kind int
const (
	Local Kind = iota
	Git
)

func Parse

func Parse(s string) Kind

type Storer

type Storer interface {
	Init(args ...string) error
	Store(msg string) error
}

func New

func New(k Kind, path string) Storer

Jump to

Keyboard shortcuts

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