persistentdata

package
v0.32.12 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package persistentdata will look for the given filename in two paths: ~/.cq/ and ./.cq/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(aferofs afero.Afero, fn string, gen func() string) *Client

func (*Client) Get

func (c *Client) Get() (v Value, err error)

Get the data (generate if it doesn't exist) and return it

type Value

type Value struct {
	Content string
	Created bool
	Path    string
	// contains filtered or unexported fields
}

func (Value) Update

func (v Value) Update(content string) error

Jump to

Keyboard shortcuts

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