1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 12:32:21 +00:00

update intro

This commit is contained in:
Xargin 2018-07-21 20:15:49 +08:00
parent 2e80e0ded2
commit c4c4ef2d06
2 changed files with 2 additions and 4 deletions

View File

@ -4,8 +4,6 @@
从语言本身的特点来讲Go 编译后不依赖外部运行环境,部署方便,无论公司内的部署系统是古老的 ansible还是现在的 docker 镜像部署。都能够方便地与 Go 进行集成。所以 Go 天生适合分布式场景。而在没有 docker 的旧时代python、java 类的语言都会遇到部署时依赖环境冲突的问题,为此还出现了不少专门解决这些环境问题的工具。
TODO pipenv java 咋解决的?
TODO这里有图
比如 python 为了解决这个问题推出了 pipenv 方案。java 系统中要为无法共享 jvm 环境的应用分别设置自己的环境变量。
本章将带大家 Go 语言如何与一些常见的分布式系统打交道,重点在工程与应用。

View File

@ -206,7 +206,7 @@ func initElasticsearchClient(host string, port string) {
)
if err != nil {
logrus.Errorf("connect to es error, host: %s, port: %s, err: %v", host, port, err)
// log error
}
}
```