---
title: "Go问题汇总"
author: "polim"
date: "2012-09-25T17:15:28Z"
tags: []
categories: ["编程语言"]
slug: "go"
draft: false
lastmod: "2012-09-25T17:15:28Z"
id: 1674629
url: "https://polim.iteye.com/blog/1674629"
---

记录学习Go中遇到的问题点滴

1、Eclipse创建Go Project时异常

GOROOT has not been set. This can be done from the Go preference page.

出现该问题的原因是由于没有配置GORoot path引起的
在Eclipse中选择 window->Preferences 弹出的菜单中选择 GO，设置GOROOT PATH

2、import project go
右键-import-General-Existing Projects into Workspace 选择具体路径下项目导入。
导入后还无法正常使用。选择具体项目右键-Properties-Go Project Configuration
source  选择src 确定。