fp

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNonExistingFolder

func CreateNonExistingFolder(path string) error

func PathExists

func PathExists(path string) bool

Types

type JSONFile

type JSONFile[T any] struct {
	IsEqual func(a, b T) bool
	Merge   func(existing *T, newItem T)
}

func (*JSONFile[T]) Load

func (j *JSONFile[T]) Load(fileName string) ([]T, error)

func (*JSONFile[T]) Remove

func (j *JSONFile[T]) Remove(fileName string, remove func(t T) bool) error

func (*JSONFile[T]) Save

func (j *JSONFile[T]) Save(fileName string, newItem T) error

Jump to

Keyboard shortcuts

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