Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新手提问,让一个变量等于一个方法的作用是什么 #20

Closed
MasterJoyHunan opened this issue Aug 24, 2021 · 2 comments
Closed

Comments

@MasterJoyHunan
Copy link

比如在 dtmsvr/utils.go 文件中
var p2e = dtmcli.P2E
p2e 作用是什么? 是编译的时候会优化吗?

@yedf2
Copy link
Contributor

yedf2 commented Aug 24, 2021

没有特别作用,就是以后只用写简短的p2e就行了,每次敲dtmcli.P2E,字符较多

@MasterJoyHunan
Copy link
Author

好的,谢谢解答

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants