Rename the Length methods Len to follow GO standart

This commit is contained in:
2022-11-17 11:09:58 +01:00
parent eb32089305
commit 29563aa94e
30 changed files with 134 additions and 130 deletions

View File

@ -97,14 +97,14 @@ func ISequenceSubChunk(iterator obiiter.IBioSequenceBatch,
batch := iterator.Get()
if batch.Length() > 1 {
if batch.Len() > 1 {
classifier.Reset()
if cap(ordered) < batch.Length() {
log.Debugln("Allocate a new ordered sequences : ", batch.Length())
ordered = make([]sSS, batch.Length())
if cap(ordered) < batch.Len() {
log.Debugln("Allocate a new ordered sequences : ", batch.Len())
ordered = make([]sSS, batch.Len())
} else {
ordered = ordered[:batch.Length()]
ordered = ordered[:batch.Len()]
}
for i, s := range batch.Slice() {