package
0.4.8
Repository: https://github.com/coralproject/shelf.git
Documentation: pkg.go.dev

# README

disk

import "github.com/coralproject/shelf/cmd/wire/disk"

Overview

Index

Package files

disk.go

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) (map[string]interface{}, error)

LoadItem serializes the content of an item from a file using the given file path. Returns the serialized item values.

func LoadQuadParams

func LoadQuadParams(context interface{}, path string) ([]wire.QuadParam, error)

LoadQuadParams serializes the content of a set of QuadParams from a file using the given file path. Returns the serialized QuadParams 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 an item from a file using the given file path.
LoadQuadParams serializes the content of a set of QuadParams from a file using the given file path.