---
title: "icoding go 环境"
author: "jickcai"
date: "2023-11-30T17:02:41Z"
tags: []
categories: ["移动开发"]
slug: "icoding-go"
draft: false
lastmod: "2023-11-30T17:02:41Z"
id: 2539609
url: "https://jickcai.iteye.com/blog/2539609"
---

launch.json

{

// Use IntelliSense to learn about possible attributes.

// Hover to view descriptions of existing attributes.

// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387

"version": "0.2.0",

"configurations": [

{

"name": "test",

"type": "go",

"request": "launch",

"mode": "debug",

"program": "${workspaceRoot}/main.go",

"env": {

"RUN\_ENV": "test",

"LISTEN\_PORT": "127.0.0.1:8080"

}

},

{

"name": "dev",

"type": "go",

"request": "launch",

"mode": "debug",

"program": "${workspaceRoot}/main.go",

"env": {

"RUN\_ENV": "dev"

},

"dlvLoadConfig": {

"followPointers": true,

"maxVariableRecurse": 1,

"maxStringLen": 512,

"maxArrayValues": 64,

"maxStructFields": -1

}

}

]

}

&lt;iframe style="display: none !important;"&gt;&lt;/iframe&gt;