code: func getValueInDir(dir *etcd.Node, key string) (value string) {
  	valPath := path.Join(dir.Key, key)
  	for _, node := range dir.Nodes {
  		if node.Key == valPath {
  			value = node.Value
  			break
  		}
  	}
  	return
  }
docs: // getValueInDir takes a *etcd.Node containing a job, and returns the value of
  // the given key within that directory (i.e. child node) as a string, or an
  // empty string if the child node does not exist