code: func NewNode(
  	importPath string,
  	tp RevisionType, val string,
  	isGetDeps bool) *Node {
  
  	n := &Node{
  		Pkg: Pkg{
  			ImportPath: importPath,
  			RootPath:   GetRootPath(importPath),
  			Type:       tp,
  			Value:      val,
  		},
  		DownloadURL: importPath,
  		IsGetDeps:   isGetDeps,
  	}
  	n.InstallPath = path.Join(setting.InstallRepoPath, n.RootPath) + n.ValSuffix()
  	n.InstallGopath = path.Join(setting.InstallGopath, n.RootPath)
  	return n
  }
docs: // NewNode initializes and returns a new Node representation.