Created
July 25, 2020 12:37
-
-
Save yakkomajuri/f50ede014f4d309ba8bf3f661dbf7943 to your computer and use it in GitHub Desktop.
This file contains 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
type Y struct { | |
someVar int | |
} | |
func (y *Y) doStuffWithY(x int) { | |
y.someVar = ... | |
} | |
// the above is exactly the same as | |
func doStuffWithY(y *Y, x int) { | |
y.someVar = ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment