Created
September 14, 2021 11:06
-
-
Save Zhang-Siyang/aeebd1766221640cb5420609e024e3de 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 DAO struct{} | |
func (DAO) QueryAlice() {} | |
func (*DAO) QueryBob() {} | |
func demo() { | |
DAO{}.QueryAlice() | |
(&DAO{}).QueryBob() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment