原文: https://golangcode.com/run-code-once-with-sync/ --------------------------------------------------- Using a web server as an example, there are multiple stages you can load resources. Within the main() function and within the handler are the obvi