fileboxed

package
v0.0.0-...-a0d5ace Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileBox

type FileBox[T unmarshal.UnMarshaler] struct {
	// contains filtered or unexported fields
}

func New

func New[T unmarshal.UnMarshaler](path string) (FileBox[T], error)

func NewWith

func NewWith[T unmarshal.UnMarshaler](path string, t T) (FileBox[T], error)

func NewWithDefault

func NewWithDefault[T unmarshal.UnMarshaler](path string, t T) (FileBox[T], error)

func (FileBox[T]) Get

func (b FileBox[T]) Get() (T, error)

func (FileBox[T]) Path

func (b FileBox[T]) Path() string

func (FileBox[T]) Put

func (b FileBox[T]) Put(t T) error

Jump to

Keyboard shortcuts

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