Skip to content

Instantly share code, notes, and snippets.

@Zhang-Siyang
Created September 14, 2021 11:06
Show Gist options
  • Save Zhang-Siyang/aeebd1766221640cb5420609e024e3de to your computer and use it in GitHub Desktop.
Save Zhang-Siyang/aeebd1766221640cb5420609e024e3de to your computer and use it in GitHub Desktop.
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