etcdserver/api/v2store/node.go
func (n *node) Read() (string, *v2error.Error) {
	if n.IsDir() {
		return "", v2error.NewError(v2error.EcodeNotFile, "", n.store.CurrentIndex)
	}

	return n.Value, nil
}
func (n *node) Read() (string, *v2error.Error) {
	if n.IsDir() {
		return "", v2error.NewError(v2error.EcodeNotFile, "", n.store.CurrentIndex)
	}

	return n.Value, nil
}
func ( n * node ) Read ( ) ( string , * v2error . Error ) { if n . IsDir ( ) { return " " , v2error . NewError ( v2error . EcodeNotFile , " " , n . store . CurrentIndex ) } return n . Value , nil }
// Read function gets the value of the node.
// If the receiver node is not a key-value pair, a "Not A File" error will be returned.
Read function gets the value of the node . If the receiver node is not a key - value pair a Not A File error will be returned .