Google Go Programming In Eclipse

http://www.tutorialsavvy.com/2013/04/google-go-programming-in-eclipse.html/

Google Go Programming In Eclipse

  • The new “Go” programming language is from Google co.It has many features better then other languages.
  • Go language features are:-

– High Speed Compilation             – Type and Memory safety             – Concurrency             – Efficient Garbage Collection

  • The Windows MSI Installer can be downloaded from the link:-

http://code.google.com/p/go/downloads/list?q=OpSys-Windows+Type%3DInstaller

  • The Eclipse Plugin Update for Go programming Languages are downloaded from link:-

http://goclipse.googlecode.com/svn/trunk/goclipse-update-site/

  • In this Demo ,We will see a Go programming in Eclipse Environment”.
  • After Updating Go plugin in Eclipse, we can set Go Configuration in Eclipse,

<img border="0" src="http://i0.wp.com/www.tutorialsavvy.com/wp-content/uploads/2013/04/go-setting-eclipse.jpg?w=667" data-recalc-dims="1" />

  • Create a new Go Project “GoLanguageDemo”  in Eclipse.

<img border="0" src="http://i0.wp.com/www.tutorialsavvy.com/wp-content/uploads/2013/04/go-project-eclipse.jpg?w=667" data-recalc-dims="1" />

  • A Google Go  project has these options,

<img border="0" src="http://i1.wp.com/www.tutorialsavvy.com/wp-content/uploads/2013/04/do_demo_web_server.jpg?w=667" data-recalc-dims="1" />

  • The Go project structure in Eclipse,

<img border="0" src="http://i1.wp.com/www.tutorialsavvy.com/wp-content/uploads/2013/04/go-project-structure-eclipse.jpg?w=667" data-recalc-dims="1" />

  • Lets Create a Go Program Listening to PORT no “9090”.Let the file name is do_demo.go file.Now The project Will look like,

    <img border="0" src="http://i0.wp.com/www.tutorialsavvy.com/wp-content/uploads/2013/04/go-prject-main-struct.jpg?w=667" data-recalc-dims="1" />

  • The  do_demo.go file,
package main import (     "net/http"     "fmt" )/* Default Request Handler*/ func defaultHandler(w http.ResponseWriter, r *http.Request) {     fmt.Fprintf(w, "<h1>Hello This is Sandeep.Testing Go Programming Language %s!</h1>", r.URL.Path[1:]) }func main() {     http.HandleFunc("/", defaultHandler)     http.ListenAndServe(":9090", nil) }
  • The Run As option for go file is,

&amp;amp;lt;img border="0" src="http://i2.wp.com/www.tutorialsavvy.com/wp-content/uploads/2013/04/go-run-as-option.jpg?w=667" data-recalc-dims="1" /&amp;amp;gt;

  • Now open up a browser and call the localhost for PORT 9090.

&amp;amp;lt;img border="0" src="http://i0.wp.com/www.tutorialsavvy.com/wp-content/uploads/2013/04/go-output.jpg?w=667" data-recalc-dims="1" /&amp;amp;gt;

Apr 11, 2013Sandeep

&amp;amp;lt;img src="http://i2.wp.com/www.tutorialsavvy.com/wp-content/uploads/2016/04/quickbookshighres-e1459968126629.jpg?w=667" alt="Javascript books" data-recalc-dims="1"&amp;amp;gt;These books are included in this bundle… Quick Start Handlebar Templating, Quick JavaScript Interview Questions, Quick CSS Authoring In SASS Way, Quick Desktop Application Development Using Electron, Quick Web Worker With JavaScript, Quick Build System with Gulp,

时间: 2024-10-13 08:35:38

Google Go Programming In Eclipse的相关文章

google test框架与eclipse插件

1. https://github.com/google/googletest    (google的测试框架) 2. eclipse测试框架插件 https://github.com/xgsa/cdt-tests-runner/wiki/Tutorial

Eclipse 4.4.1 (Luna) for C/C++ Programming

Eclipse 4.4.1 (Luna) for C/C++ Programming 目录 Eclipse 441 Luna for CC Programming 目录 Eclipse 441 Luna安装CC Development ToolCDT 在 Eclipse 中编写第一个 CC 程序 C 程序 C 程序 C Program with Makefile 阅读文档 Eclipse CDT中调试 CC 程序 Eclipse 使用技巧 使用 GCC 进行 CC 开发 Eclipse 中的Fi

Google将不再支持Android Eclipse Tools

爱盈利: 近日,Google宣布将在年底前停止对Eclipse Android开发工具的一切支持. 在Android Studio 1.0版发布时,Google就宣布将其作为官方的Android开发工具,并建议开发者转向Android Studio.对于那些还没有转向Android Studio的开发者来说,现在则不得不面对这个问题了,因为Google已经宣布将在今年底终止Eclipse Android工具的开发与支持.这包括ADT插件.Ant构建系统.DDMS.Traceview与其他性能和监

eclipse 常用插件

转自:http://blog.csdn.net/fmynjy/article/details/51500989 开发过程中的常用Eclipse插件,按字母排序: (1)    AmaterasUML        介绍:Eclipse的UML插件,支持UML活动图,class图,sequence图,usecase图等:支持与Javaclass/interface之间的相互导入导出.        官方网站:http://amateras.sourceforge.jp/cgi-bin/fswiki

在fedora20下配置hadoop2.5.1的eclipse插件

我现在是把hadoop-2.5.1的路径是/opt/lib64/hadoop-2.5.1下面,然后将hadoop-2.2.0的路径是/home/hadoop/下载/hadoop-2.2.0,我的eclipse的路径是/opt/programming/atd-bundle/eclipse. 因为老师需要我们写mapreduce程序,所以现在需要配置hadoop的eclipse插件.之前在windows下面安装hadoop一直会有莫名其妙的问题,所以索性直接在linux下面装了.Linux下面还更简

ubuntu下eclipse android SDK安装

1.首先打开terminal终端,输入:sudo gedit /etc/hosts,此时会弹出一个文本框将以下内容放在文本框末尾. 203.208.46.146 www.google.com 74.125.113.121 developer.android.com 203.208.46.146 dl.google.com 203.208.46.146 dl-ssl.google.com 2. 打开eclipse(如果没有安装eclipse,打开ubuntu软件中心搜索,直接安装就可以了),在菜单

Eclipse常用开发插件

以下是我整理的自己开发过程中的常用Eclipse插件,按字母排序: (1)    AmaterasUML         介绍:Eclipse的UML插件,支持UML活动图,class图,sequence图,usecase图等:支持与Java class/interface之间的相互导入导出.         官方网站:http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=AmaterasUML         插件下载UR

Eclipse用法和技巧二十八:Eclipse插件Easy Explore的今世

先说明一下easyexplore插件的功能,easyexplore是一个类似于 Windows Explorer的Eclipse插件,它可以帮助你在不退出Eclipse的环境下迅速浏览本地文件系统. 具体可以看图: 前一阵子项目组来了一批新员工,在配置开发环境的时候,发现有的员工可以安装easyexplore插件,有的安装无效.经过分析发现,有的员工用的Eclipse是从Android开发网站上下载的,adt-bundle-windows包里面的,Eclipse的版本是JUNO版本,有的员工的E

Android接入Google+分享功能

Android使用Google+分享功能 1.首先将<android-sdk-folder>/extras/google/google_play_services 导入到Eclipse中 如果没有这个工程首先更新到最新的ADT,然后打开Android SDK Manager进行下载 2.然后将其作为lib工程add到我们的工程上 3.主要的分享代码: //google+分享 public void doGooglePlusShare(Activity mContext) { // 判断是否安装