func (b *BasicMessage) FindSegments(segmentID string) []segment.Segment {
	var segments []segment.Segment
	for _, segment := range b.HBCIMessage.HBCISegments() {
		if segment.Header().ID.Val() == segmentID {
			segments = append(segments, segment)
		}
	}
	return segments
}
// FindSegments returns all segments found for the segmentID, or nil if nothing found
FindSegments returns all segments found for the segmentID, or nil if nothing found
// FindSegments returns all segments found for the segmentID or nil if nothing found
func (b *BasicMessage) FindSegments(segmentID string) []segment.Segment {
	var segments []segment.Segment
	for _, segment := range b.HBCIMessage.HBCISegments() {
		if segment.Header().ID.Val() == segmentID {
			segments = append(segments, segment)
		}
	}
	return segments
}
func ( b * BasicMessage ) FindSegments ( segmentID string ) [ ] segment . Segment { var segments [ ] segment . Segment for _ , segment := range b . HBCIMessage . HBCISegments ( ) { if segment . Header ( ) . ID . Val ( ) == segmentID { segments = append ( segments , segment ) } } return segments }
FindSegments returns all segments found for the segmentID, or nil if nothing found
FindSegments returns all segments found for the segmentID or nil if nothing found