Eric

Results 2 comments of Eric

目前没有相关逻辑,如果需要不同的环境变量可以写到app.ini配置文件中,启动的时候修改一下配置文件就行了[https://github.com/wuhe52/golang-gin-restfulAPI-example-app/blob/master/conf/app.ini](https://github.com/wuhe52/golang-gin-restfulAPI-example-app/blob/master/conf/app.ini)

```js const oldJson = { a: 1 } const newJson = JSON.parse(JSON.stringify(oldJson)) oldJson.a = 2 console.log(oldJson) // {a: 2} console.log(newJson) // {a: 1} ```