Documentation ¶ Index ¶ func FileExists(path string) (bool, error) type Config type Handler func New[T any](config Config) (*Handler[T], error) func (h *Handler[T]) Clear() error func (h *Handler[T]) Data() T func (h *Handler[T]) Update(callback func(T) T) (T, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func FileExists ¶ func FileExists(path string) (bool, error) 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]) Clear ¶ func (h *Handler[T]) Clear() error func (*Handler[T]) Data ¶ func (h *Handler[T]) Data() T func (*Handler[T]) Update ¶ func (h *Handler[T]) Update(callback func(T) T) (T, error) Source Files ¶ View all Source files exists.gohandler.go Click to show internal directories. Click to hide internal directories.