Google Go Programming In Eclipse
生活随笔
收集整理的這篇文章主要介紹了
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,
- Create a new Go Project “GoLanguageDemo”? in Eclipse.
- A Google Go? project has these options,
- ?The Go project structure in Eclipse,
- ?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, ???????????????
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,
- ?Now open up a browser and call the localhost for PORT 9090.
總結
以上是生活随笔為你收集整理的Google Go Programming In Eclipse的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: html边框有箭头,css简单实现带箭头
- 下一篇: html关于拖放叙述错误,CIW页面设计