开发者

go 懒加载

0
  • golang使用sync.Once实现懒加载的用法和坑点详解

    在使用golang做后端开发的工程中,我们通常需要声明一些一些配置类或服务单例等在业务逻辑层面较为底层的实例。为了节省内存或是冷启动开销,我们通常采用lazy-load懒加载的方式去初始化这些实例。初始化单例这个行为[详细]

    2023-11-21 11:59 分类:开发
  • How to auto-deploy web-app

    I\'m trying to make sense on the best way to do automatize a series of things in a row in order to deploy a web-app and haven\'t yet came up with a s开发者_开发问答uitable solution. I would like to:[详细]

    2022-12-28 17:29 分类:问答