Skip to content

proposal: strings: add IsEmpty function #33991

Description

@mahadevTW

What version of Go are you using (go version)?

$ go version
go version go1.12.7 darwin/amd64

Does this issue reproduce with the latest release?

Yes

What did you do?

Try to find better to way to check if the string is empty.

What did you expect to see?

Expecting verbose way to check if the string is empty rather than using,

Len(s) == 0

or

s == ""

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions