storage

package
v1.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	Dir string
}

Storage is a storage for flags.

func NewStorage

func NewStorage(dir string) *Storage

NewStorage creates a new storage.

func (*Storage) Create

func (s *Storage) Create(file string) error

Create creates the given file.

func (*Storage) Delete

func (s *Storage) Delete(file string) error

Delete deletes the given file.

func (*Storage) Exists

func (s *Storage) Exists(file string) bool

Exists returns true if the given file exists.

Jump to

Keyboard shortcuts

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