Skip to content

Commit

Permalink
Merge pull request #1 from ourgo/master
Browse files Browse the repository at this point in the history
Update from origin
  • Loading branch information
Jancd committed Jul 30, 2017
2 parents 84ab0c0 + 1eac42d commit 698c233
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/*
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# Project Name: wego
# Project target: Web Online Instant Messaging
# Welcome to join us: Go/golang/学习交流QQ二群
# QQ Group Number: 634281386
#
# 版本号指定
# 1.采用三位版本号 Version: 0.0.0
# 2.第一位为大版本更迭 Version: 1.0.0
# 3.第二位为更新年份 Version: 0.2017.0
# 4.第三位为更新月份及日期 Version: 0.0.0726
#
# 例如: 如果2017年7月26日大版本更新,对应版本为 Version: 1.2017.0726
## Project target: Web Online Instant Messaging
## Welcome to join us: Go/golang/学习交流QQ二群
## QQ Group Number: 634281386
# -------------------------------------------------------------------
## 版本号指定
### 1.采用三位版本号 Version: 0.0.0
### 2.第一位为大版本更迭 Version: 1.0.0
### 3.第二位为更新年份 Version: 0.2017.0
### 4.第三位为更新月份及日期 Version: 0.0.0726<br>例如: 如果2017年7月26日大版本更新,对应版本为 Version: 1.2017.0726
19 changes: 18 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,25 @@
/*main package*/
package main

import /*import */
import (
"fmt"
"net/http"
)

// 展示首页
func showIndex(write http.ResponseWriter,req *http.Request){
// 解析路由参数
req.ParseForm()

//输出hello wego
fmt.Fprintf(write,"hello wego")

}

func main(){
/*main code*/
http.HandleFunc("/",showIndex)
fmt.Println("服务启动在8000端口")
http.ListenAndServe(":8000",nil)

}

0 comments on commit 698c233

Please sign in to comment.