Example #1
0
File: tree.go Project: e8vm/shanhu
func loadTree(s store.Store, hash string) (*Tree, error) {
	bs, err := s.Get(hash)
	if err != nil {
		return nil, err
	}
	return unmarshalTree(bs)
}