this post was submitted on 03 Aug 2023
27 points (100.0% liked)

Golang

2391 readers
3 users here now

This is a community dedicated to the go programming language.

Useful Links:

Rules:

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] CodeBlooded@programming.dev 1 points 2 years ago* (last edited 2 years ago)

Are you speaking about clear? It’s my understanding that clear doesn’t get you anything. It modifies the object passed to it, sure, but it doesn’t return different types back to the caller.

Edit: I notice this is downvoted- can someone provide feedback if my understanding of clear is incorrect? 🤔