Last active
December 16, 2019 11:07
-
-
Save jjuliano/7b4a7a184719782138e7bd290b79ee92 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (receiverName *receiverType) functionName(parameterName parameterType) { | |
// we can directly set the value of the receiver type (setter) | |
*receiverName = parameterName | |
// we can also access the value of the receiver type (getter) | |
fmt.Println(receiverName) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment