Benchmark for understanding golang.
If you use VSCODE
for coding, you need to config your gopls in vscode's settings.json for support multi module file.
Add code like below:
"gopls": {
"build.experimentalWorkspaceModule": true
}
Copy is more effective than append.
slice the file is more effective than read the whole file to memeroy.
Use pointer is much more faster. 使用反射和指针性能提升十分明显
用使用指针一定比内存快?