repository

package
v0.0.0-...-5b668fc Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathConfigYaml   = "config.yaml"
	PathAccountsYaml = "accounts.yaml"
	PathClientsYaml  = "clients.yaml"
	PathProjects     = "projects"
	PathTemplates    = "templates"
	PathInvoices     = "invoices"
)

Variables

This section is empty.

Functions

func DefaultAccounts

func DefaultAccounts() *types.Accounts

func DefaultClients

func DefaultClients() *types.Clients

func DefaultConfig

func DefaultConfig() *types.Config

func DefaultInvoices

func DefaultInvoices() []*types.Invoice

func DefaultProjects

func DefaultProjects() []*types.Project

func DefaultTemplates

func DefaultTemplates() []*types.Template

Types

type OSWrapper

type OSWrapper struct {
	// contains filtered or unexported fields
}

func NewOSWrapper

func NewOSWrapper(fsys fs.FS) (*OSWrapper, error)

func (*OSWrapper) Create

func (w *OSWrapper) Create(path string) (*os.File, error)

func (*OSWrapper) MkDirAll

func (w *OSWrapper) MkDirAll(path string, perm fs.FileMode) error

func (*OSWrapper) Open

func (w *OSWrapper) Open(name string) (fs.File, error)

func (*OSWrapper) Remove

func (w *OSWrapper) Remove(path string) error

func (*OSWrapper) Rename

func (w *OSWrapper) Rename(src, dst string) error

func (*OSWrapper) Stat

func (w *OSWrapper) Stat(name string) (fs.FileInfo, error)

type RWFS

type RWFS interface {
	fs.FS

	MkDirAll(path string, perm fs.FileMode) error
	Create(path string) (*os.File, error)
	Rename(src, dst string) error
	Remove(path string) error
}

Jump to

Keyboard shortcuts

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