# README
disk
import "github.com/coralproject/shelf/cmd/sponge/disk"
Overview
Index
- func LoadDir(dir string, loader func(string) error) error
- func LoadItem(context interface{}, path string) (*item.Item, error)
- func LoadPattern(context interface{}, path string) (pattern.Pattern, error)
Package files
func LoadDir
func LoadDir(dir string, loader func(string) error) error
LoadDir loadsup a given directory, calling a load function for each valid json file found.
func LoadItem
func LoadItem(context interface{}, path string) (*item.Item, error)
LoadItem serializes the content of Items from a file using the given file path. Returns the serialized Item value.
func LoadPattern
func LoadPattern(context interface{}, path string) (pattern.Pattern, error)
LoadPattern serializes the content of a Pattern from a file using the given file path. Returns the serialized Pattern value.
Generated by godoc2md
# Functions
LoadDir loadsup a given directory, calling a load function for each valid json file found.
LoadItem serializes the content of Items from a file using the given file path.
LoadPattern serializes the content of a Pattern from a file using the given file path.