Problemas

What operator is used to access the members of a custom object in Go? The dot operator The fmt operator The assignment operator The arithmetic operator
Solución

María Josémaestro · Tutor durante 5 años

4.0 (336 votos)
Responder
The dot operator<br /><br />In Go, the dot operator (.) is used to access the members of a custom object. For example, if you have a struct named `Person` with a field `Name`, you can access it using the dot operator like this: `person.Name`.
Haz clic para calificar: