storage

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	FilePath string
}

type Handler

type Handler[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](config Config) (*Handler[T], error)

func (*Handler[T]) Data

func (h *Handler[T]) Data() *T

func (*Handler[T]) Save

func (h *Handler[T]) Save(data *T) error

Jump to

Keyboard shortcuts

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