persistentdata

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var ErrIsDirectory = fmt.Errorf("file is directory")

Functions

This section is empty.

Types

type Client

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

func New

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

func (*Client) Get

func (c *Client) Get() (value string, newlyCreated bool, err error)

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

Jump to

Keyboard shortcuts

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