Skip to content

strings: Undocumented behavior of strings.FieldsFunc #12351

@elwinar

Description

@elwinar

I just remarked by reading the source of the strings.FieldsFunc that the method will also remove empty fields from its return value. For example, see the following playground.

Seeing that the used algorithm isn't the same than the one for the splits, I wonder if it is an undocumented feature or a bug ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions