Skip to content

Indexing bug in batchItems slicing #3

@IsmailAfiff

Description

@IsmailAfiff

In the tutorial, the usage of the function is batchItems := items[start:end].
Golang slice is exclusive meaning the end is not included in the slice, therefore it should be batchItems := items[start:end+1].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions