设为首页 加入收藏

TOP

Google Go Programming In Eclipse(二)
2017-09-30 13:44:59 】 浏览:8942
Tags:Google Programming Eclipse
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,
  •  Now open up a browser and call the localhost for PORT 9090.
Apr 11, 2013 Sandeep
java script books              These books are included in this bundle… Quick Start Handlebar Templating, Quick java script Interview Questions, Quick CSS Authoring In SASS Way, Quick Desktop Application Development Using Electron, Quick Web Worker With java script, Quick Build System with Gulp,
首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇windows下用eclipse+goclipse插件.. 下一篇go语言操作mysql范例(增删查改)

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目