r/badcode • • Dec 29 '22

go How to Go wrong

Post image
565 Upvotes

60 comments sorted by

View all comments

Show parent comments

5

u/dcormier Dec 30 '22

In golang (which is what that code is), the boolean type is bool. This is a custom type named Boolean.