// NewVNode initialize and returns a new VNode under current vnode.
NewVNode initialize and returns a new VNode under current vnode.
// NewVNode initialize and returns a new VNode under current vnode .
func (vn *VNode) NewVNode(path string) *VNode {
	i := append(vn.ID, path...)
	n := &VNode{
		ID:     utils.HashStr(utils.ToStr(i)),
		Path:   path,
		Links:  []*VNode{},
		Source: db.NewSource(path),
	}
	vn.Links = append(vn.Links, n)
	return n
}
func ( vn * VNode ) NewVNode ( path string ) * VNode { i := append ( vn . ID , path ... ) n := & VNode { ID : utils . HashStr ( utils . ToStr ( i ) ) , Path : path , Links : [ ] * VNode { } , Source : db . NewSource ( path ) , } vn . Links = append ( vn . Links , n ) return n }
NewVNode initialize and returns a new VNode under current vnode.
NewVNode initialize and returns a new VNode under current vnode .