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
Roztwór
María José
maestro · Tutor durante 5 años
4
(336 Votos)
Respuesta
The dot operatorIn 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`.