func (s *Shell) ID(peer ...string) (*IdOutput, error) {
	if len(peer) > 1 {
		return nil, fmt.Errorf("Too many peer arguments")
	}

	var out IdOutput
	if err := s.Request("id", peer...).Exec(context.Background(), &out); err != nil {
		return nil, err
	}
	return &out, nil
}
func (s *Shell) ID(peer ...string) (*IdOutput, error) {
	if len(peer) > 1 {
		return nil, fmt.Errorf("Too many peer arguments")
	}

	var out IdOutput
	if err := s.Request("id", peer...).Exec(context.Background(), &out); err != nil {
		return nil, err
	}
	return &out, nil
}
func ( s * Shell ) ID ( peer ... string ) ( * IdOutput , error ) { if len ( peer ) > 1 { return nil , fmt . Errorf ( " " ) } var out IdOutput if err := s . Request ( " " , peer ... ) . Exec ( context . Background ( ) , & out ) ; err != nil { return nil , err } return & out , nil }
// ID gets information about a given peer.  Arguments:
//
// peer: peer.ID of the node to look up.  If no peer is specified,
//   return information about the local peer.
ID gets information about a given peer . Arguments : peer : peer . ID of the node to look up . If no peer is specified return information about the local peer .