disk

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2016 License: Apache-2.0 Imports: 6 Imported by: 2

README

disk

import "github.com/coralproject/shelf/cmd/sponge/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) (*item.Item, error)

LoadItem serializes the content of Items from a file using the given file path. Returns the serialized Item value.


Generated by godoc2md

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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